コード例 #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_chart_without_capcha()
    assert page.should_not_be_success_message()
コード例 #2
0
 def test_user_can_add_product_to_basket(self, browser):
     link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207"
     page = ProductPage(browser, link)
     page.open()
     page.add_to_chart_without_capcha()
     time.sleep(1)
     page.should_be_added_to_the_cart_without_capcha()