def test_user_can_go_to_login_page_from_product_page(self, browser, link): # link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/the-city-and-the-stars_95/" page = Product(browser, link) page.open() page.should_be_login_link() page.go_to_login_page()
def test_user_cant_see_success_message(self, browser, link): # link = 'http://selenium1py.pythonanywhere.com/catalogue/the-shellcoders-handbook_209/?promo=newYear' page = Product(browser, link) page.open() page.should_not_be_success_message()
def test_message_disappeared_after_adding_product_to_basket(self, browser, link): # link = 'http://selenium1py.pythonanywhere.com/catalogue/the-shellcoders-handbook_209/?promo=newYear' page = Product(browser, link) page.open() page.product_is_disappeared()
def test_guest_can_add_product_to_basket(self, browser, link): page = Product(browser, link) page.open() page.add_item_to_basket() page.solve_quiz_and_get_code() page.check_item() page.check_price()