コード例 #1
0
def test_guest_can_add_product_to_cart(browser, link):
    page = ProductPage(browser, link)
    page.open()
    page.add_to_cart()
    page.solve_quiz_and_get_code()
    page.add_to_cart_check()
コード例 #2
0
 def test_user_can_add_product_to_cart(self, browser, setup):
     link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/the-shellcoders-handbook_209/"
     page = ProductPage(browser, link)
     page.open()
     page.add_to_cart()
     page.add_to_cart_check()