def test_guest_cant_see_success_message_after_adding_product_to_basket( browser): link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/coders-at-work_207/" page_prod = ProductPage(browser, link) page_prod.open() page_prod.add_item_in_cart() page_prod.should_be_success_message_after_adding_in_cart()
def test_user_can_add_product_to_basket(self, browser): link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/coders-at-work_207/" page_prod = ProductPage(browser, link) page_prod.open() page_prod.add_item_in_cart()