Exemplo n.º 1
0
def test_my_marks(browser, mobile, num_points):

    functions.login(browser)

    marks = FirstPage(browser)
    marks.load()
    marks.tools()

    marks = ToolsPage(browser)
    marks.my_marks()

    marks = MyPoiPage(browser, num_points)
    marks.add_points()
    marks.rename_last()
    marks.stop_adding()
    marks.save()

    save_page = SavePage(browser)
    save_page.change_name('One point')
    save_page.save()
    #
    # #mobile check
    # # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'One point'

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

    functions.login(browser)

    measure = FirstPage(browser)
    measure.load()
    measure.tools()

    measure = ToolsPage(browser)
    measure.measurement()

    measure = MeasurementPage(browser)
    measure.add()
    measure.save()

    save_page = SavePage(browser)
    save_page.change_name('Measurement')
    save_page.save()

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

    functions.delete_poi(mobile)
Exemplo n.º 3
0
def test_planning5(browser, mobile):
    functions.login(browser)

    planning = FirstPage(browser)
    planning.load()
    planning.planning()

    auto = PlanningPage(browser)
    auto.bike()

    auto.start()
    auto.end()

    auto.save_route()

    save_page = SavePage(browser)
    save_page.change_name('Route bike')
    save_page.save()

    # mobile check
    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'Route bike'

    # delete folder on web

    functions.delete_poi(mobile)
Exemplo n.º 4
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)
Exemplo n.º 5
0
def test_planning7(browser, mobile):
    functions.login(browser)

    planning = FirstPage(browser)
    planning.load()
    planning.planning()

    auto = PlanningPage(browser)

    auto.foot()
    auto.foot_short()

    auto.start_boat()
    auto.end_boat()

    auto.save_route()

    save_page = SavePage(browser)
    save_page.change_name('Route foot short')
    save_page.save()

    # mobile check
    # mobile
    # #elem = functions.check_mobile_item(mobile, 'Route foot short')
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'Route foot short'

    # delete folder on web
    timeout()
    functions.delete_poi(mobile)
Exemplo n.º 6
0
def test_osm_poi(browser, mobile):

    functions.login(browser)

    SEARCH: str = 'London Eye'
    functions.search_element(browser, SEARCH)

    search = SearchPage(browser)
    search.save_exact_match()

    save_page = SavePage(browser)
    save_page.save()

    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == SEARCH

    # delete folder on web
    functions.delete_poi(mobile)
Exemplo n.º 7
0
def test_firm_poi(browser, mobile):
    functions.login(browser)

    SEARCH: str = 'Plzeňský restaurant Anděl'

    functions.search_element(browser, SEARCH)

    search = SearchPage(browser)
    # search.close_exact_search()
    search.save_exact_match()

    save_page = SavePage(browser)
    save_page.save()

    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == SEARCH

    # delete folder on web
    functions.delete_poi(mobile)
Exemplo n.º 8
0
def test_coor_changed_name(browser, mobile):

    functions.login(browser)

    coor = FirstPage(browser)
    coor.load()
    coor.coor()

    poi = SearchPage(browser)
    poi.save_exact_match()

    save_page = SavePage(browser)
    save_page.save()

    #mobile check
    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'Position on the map'

    # delete folder on web

    functions.delete_poi(mobile)
Exemplo n.º 9
0
def test_pubt_poi(browser, mobile):
    functions.login(browser)

    SEARCH: str = 'Zborovská zastávka tramvaje'

    functions.search_element(browser, SEARCH)

    search = SearchPage(browser)
    try:
        search.search_result_several()
        search.save_exact_match()
    except:
        search.save_exact_match()
    save_page = SavePage(browser)
    save_page.save()

    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'Zborovská'

    # delete folder on web
    functions.delete_poi(mobile)
Exemplo n.º 10
0
def test_poi_changed_name(browser, mobile):
    functions.login(browser)

    SEARCH: str = 'Rudolfinum'

    functions.search_element(browser, SEARCH)

    search = SearchPage(browser)
    # search.close_exact_search()
    search.save_exact_match()

    save_page = SavePage(browser)
    save_page.change_name('Poi s vlastním názvem')
    save_page.save()

    # mobile
    elem = functions.check_mobile_item(mobile)
    assert elem.get_attribute('text') == 'Poi s vlastním názvem'

    # delete folder on web

    functions.delete_poi(mobile)
Exemplo n.º 11
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)