Ejemplo n.º 1
0
def test_trip_bike(browser, mobile):

    functions.login(browser)

    trip = FirstPage(browser)
    trip.load()
    trip.trip()

    trip = TripPage(browser)
    trip.bike()
    trip.change_dist()
    for i in range(100000000):
        pass
    trip.save_trip()

    save_page = SavePage(browser)
    save_page.change_name('Bike trip')
    save_page.save()

    #mobile check
    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'Bike trip'

    # delete folder on web
    functions.delete_poi(mobile)
Ejemplo n.º 2
0
def test_trip_foot(browser, mobile):

    functions.login(browser)

    trip = FirstPage(browser)
    trip.load()
    trip.trip()

    trip = TripPage(browser)
    #trip.foot()
    trip.save_trip()

    save_page = SavePage(browser)
    save_page.change_name('Foot trip')
    save_page.save()

    #mobile check
    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'Foot trip'

    # delete folder on web

    functions.delete_poi(mobile)