def test_guest_cant_see_success_message_after_adding_product_to_basket( browser): link = f"http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/" pages = AddInBasket(browser, link) pages.open() pages.add_in_basket() pages.AssertIsNotElementPresent()
def test_guest_cant_see_product_in_basket_opened_from_main_page(self, browser): link = "http://selenium1py.pythonanywhere.com/ru/" page = BasePage(browser, link) page.open() page.go_to_look_basket() pages = AddInBasket(browser, link) pages.AssertIsNotElementPresent() page1 = BasketPage(browser, link) page1.AssertTextBasketEmpty()
def test_user_cant_see_success_message(self, browser): link = f"http://selenium1py.pythonanywhere.com/en-gb/catalogue/the-city-and-the-stars_95/" pages = AddInBasket(browser, link) pages.open() pages.AssertIsNotElementPresent()