Beispiel #1
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)
Beispiel #2
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)