def test_reviews_link_is_presents(browser, url): page = BasePage( browser, url + '/index.php?route=product/product&path=57&product_id=49') page.open() assert page.is_element_present( *ProductCardSelectors.REVIEWS_LINK), 'Элемент не найден на странице!'
def test_button_add_to_card_is_presents(browser, url): page = BasePage( browser, url + '/index.php?route=product/product&path=57&product_id=49') page.open() assert page.is_element_present(*ProductCardSelectors.BUTTON_ADD_TO_CARD ), 'Элемент не найден на странице!'
def test_qty_field_is_presents(browser, url): page = BasePage( browser, url + '/index.php?route=product/product&path=57&product_id=49') page.open() assert page.is_element_present( *ProductCardSelectors.QTY_FIELD), 'Элемент не найден на странице!'
def test_button_compare_this_product_is_presents(browser, url): page = BasePage( browser, url + '/index.php?route=product/product&path=57&product_id=49') page.open() assert page.is_element_present( *ProductCardSelectors.BUTTON_COMPARE_THIS_PRODUCT ), 'Элемент не найден на странице!'
def test_username_field_is_presents(browser, url): page = BasePage(browser, url + '/admin/') page.open() assert page.is_element_present(*LoginAdminPageSelector.USERNAME_FIELD ), 'Элемент не найден на странице!'
def test_opencart_link_is_presents(browser, url): page = BasePage(browser, url + '/admin/') page.open() assert page.is_element_present(*LoginAdminPageSelector.OPENCART_LINK ), 'Элемент не найден на странице!'
def test_login_button_is_presents(browser, url): page = BasePage(browser, url + '/admin/') page.open() assert page.is_element_present( *LoginAdminPageSelector.LOGIN_BUTTON), 'Элемент не найден на странице!'
def test_forgotten_password_is_presents(browser, url): page = BasePage(browser, url + '/admin/') page.open() assert page.is_element_present(*LoginAdminPageSelector.FORGOTTEN_PASSWORD ), 'Элемент не найден на странице!'
def test_password_field_is_presents(browser, url): page = BasePage(browser, url + '/admin/') page.open() assert page.is_element_present(*LoginAdminPageSelector.PASSWOD_FIELD ), 'Элемент не найден на странице!'
def test_button_continue_is_presents(browser, url): page = BasePage(browser, url+'/index.php?route=account/login') page.open() assert page.is_element_present(*LoginPageSelectors.BUTTON_CONTINUE), 'Элемент не найден на странице!'
def test_forgotten_passwod_link_is_presents(browser, url): page = BasePage(browser, url+'/index.php?route=account/login') page.open() assert page.is_element_present(*LoginPageSelectors.FORGOTTEN_PASSWORD_LINK), 'Элемент не найден на странице!'
def test_password_field_is_presents(browser, url): page = BasePage(browser, url+'/index.php?route=account/login') page.open() assert page.is_element_present(*LoginPageSelectors.PASSWORD_FIELD), 'Элемент не найден на странице!'
def test_search_field_is_presents(browser, url): page = BasePage(browser, url + '/index.php?route=product/category&path=20') page.open() assert page.is_element_present( *CatalogPageSelectors.SEARCH_FIELD), 'Элемент не найден на странице!'
def test_link_product_compare_is_presents(browser, url): page = BasePage(browser, url + '/index.php?route=product/category&path=20') page.open() assert page.is_element_present(*CatalogPageSelectors.LINK_PRODUCT_COMPARE ), 'Элемент не найден на странице!'
def test_list_button_is_presents(browser, url): page = BasePage(browser, url + '/index.php?route=product/category&path=20') page.open() assert page.is_element_present( *CatalogPageSelectors.LIST_BUTTON), 'Элемент не найден на странице!'