Exemplo n.º 1
0
def test_guest_cant_see_success_message_after_adding_product_to_basket(
        browser):
    link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/'
    page = ProductPage(browser, link)
    page.open()
    page.add_to_busket()
    page.should_not_be_success_message()
Exemplo n.º 2
0
def test_guest_can_add_product_to_basket(browser, offerNum):
    link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207?promo=offer' + str(
        offerNum)
    page = ProductPage(browser, link)
    page.open()
    page.add_to_busket()
    page.solve_quiz_and_get_code()
    page.if_added_successfully()