コード例 #1
0
def test_guest_cant_see_success_message_after_adding_product_to_basket(
        browser):
    link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/the-age-of-the-pussyfoot_89/"
    page = ProductPage(browser, link)
    page.open()
    page.add_item_to_basket_without_matan()
    page.no_success_message_on_page()
コード例 #2
0
 def test_user_can_add_product_to_basket(self, browser):
     page = ProductPage(browser, self.link)
     page.add_item_to_basket_without_matan()
     page.check_basket_price()
コード例 #3
0
def test_message_disappeared_after_adding_product_to_basket(browser):
    link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/the-age-of-the-pussyfoot_89/"
    page = ProductPage(browser, link)
    page.open()
    page.add_item_to_basket_without_matan()
    page.success_message_are_vanish()