import pytest
import time

link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/"

def test_add_to_basket_button_is_present(browser):
    browser.get(link)
    # Uncomment next line to check the page language
    #time.sleep(30)
    items = browser.find_elements_by_css_selector("form#add_to_basket_form>button.btn.btn-lg.btn-primary.btn-add-to-basket")
    assert len(items) > 0 , "'Add to basket' button wasn't found"

25deadd038944e95b9f949cea527832e174a37a6
<mask token>

<mask token>


def test_add_to_basket_button_is_present(browser):
    browser.get(link)
    items = browser.find_elements_by_css_selector(
        'form#add_to_basket_form>button.btn.btn-lg.btn-primary.btn-add-to-basket'
        )
    assert len(items) > 0, "'Add to basket' button wasn't found"

<mask token>
link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/'


def test_add_to_basket_button_is_present(browser):
    browser.get(link)
    items = browser.find_elements_by_css_selector(
        'form#add_to_basket_form>button.btn.btn-lg.btn-primary.btn-add-to-basket'
        )
    assert len(items) > 0, "'Add to basket' button wasn't found"

import pytest
import time
link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/'


def test_add_to_basket_button_is_present(browser):
    browser.get(link)
    items = browser.find_elements_by_css_selector(
        'form#add_to_basket_form>button.btn.btn-lg.btn-primary.btn-add-to-basket'
        )
    assert len(items) > 0, "'Add to basket' button wasn't found"

import pytest
import time

link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/"

def test_add_to_basket_button_is_present(browser):
    browser.get(link)
    # Uncomment next line to check the page language
    #time.sleep(30)
    items = browser.find_elements_by_css_selector("form#add_to_basket_form>button.btn.btn-lg.btn-primary.btn-add-to-basket")
    assert len(items) > 0 , "'Add to basket' button wasn't found"
