def test_user_can_add_product_to_basket(self, browser):
     link = "http://selenium1py.pythonanywhere.com/ru/catalogue/the-shellcoders-handbook_209/?promo=newYear"
     page = ProductPage(browser, link)
     page.open()
     page.click_button_add_to_busket()
     page.add_code_in_allert()
     page.should_see_message_added_product()
def test_message_disappeared_after_adding_product_to_basket(browser):
    link = "http://selenium1py.pythonanywhere.com/ru/catalogue/the-shellcoders-handbook_209/?promo=newYear"
    page = ProductPage(browser, link)
    page.open()
    page.click_button_add_to_busket()
    page.add_code_in_allert()
    page.should_not_be_success_message_disappeared()
def test_guest_can_add_product_to_basket(browser, link):
    page = ProductPage(browser, link)
    page.open()
    page.click_button_add_to_busket()
    page.add_code_in_allert()
    page.should_see_message_added_product()
def test_guest_passed_aller_added_product(browser):
    link = "http://selenium1py.pythonanywhere.com/ru/catalogue/the-shellcoders-handbook_209/?promo=newYear"
    page = ProductPage(browser, link)
    page.open()
    page.click_button_add_to_busket()
    page.add_code_in_allert()