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()
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()
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()