Пример #1
0
def verify_that_my_product_is_on_the_basket(shoppingCartPage, app):
    assert(shoppingCartPage.verifyProductOnBasket())
    app.take_screenshot('results')
    app.driver.quit()
Пример #2
0
def i_see_if_results_contains(googleHomePage, txtResult, app):
    assert googleHomePage.seeResults(txtResult)
    app.take_screenshot('results')
    app.driver.quit()
Пример #3
0
def i_should_open_the_product_page(homePage, shoppingCartPage, app):
    homePage.openProductsPage()
    assert shoppingCartPage.verifyProductOnBasket()
    app.take_screenshot('results')
    app.driver.quit()
def look_for_added_item(toDoAppPage,name,app):
    assert toDoAppPage.look_for_added_item(name), 'Item not added'
    app.take_screenshot('0001')
    toDoAppPage.end_session()
def look_for_added_item(toDoAppPage, value, app):
    assert not toDoAppPage.look_for_added_item(value), 'Item not removed'
    app.take_screenshot('0002')
    toDoAppPage.end_session()
def app_title_should_be_available(toDoAppPage,app):
    assert toDoAppPage.look_for_page_title(), 'Title is not Todo app'
    app.take_screenshot('0000')
    toDoAppPage.end_session()
Пример #7
0
def i_click_on_continue_button(userLoginPage, homePage, app):
    userLoginPage.clickOnLogin()
    assert homePage.checkHomePage()
    app.take_screenshot('results')
    app.driver.quit()