from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException


def test_button_add_basket(browser: webdriver.Chrome):
    link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207'
    browser.get(link)
    try:
        __ = browser.find_element(By.CSS_SELECTOR, 'button.btn-add-to-basket')
    except NoSuchElementException:
        assert False, 'Basket was not found'

91364ab9e6f06e2e08d6f7ec89f4baeb60d36bb8
<mask token>

<mask token>


def test_button_add_basket(browser: webdriver.Chrome):
    link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207'
    browser.get(link)
    try:
        __ = browser.find_element(By.CSS_SELECTOR, 'button.btn-add-to-basket')
    except NoSuchElementException:
        assert False, 'Basket was not found'

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException


def test_button_add_basket(browser: webdriver.Chrome):
    link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207'
    browser.get(link)
    try:
        __ = browser.find_element(By.CSS_SELECTOR, 'button.btn-add-to-basket')
    except NoSuchElementException:
        assert False, 'Basket was not found'
