from selenium.webdriver.common.by import By


class BasePageLocators():
    LOGIN_LINK = (By.CSS_SELECTOR, "#login_link")
    LOGIN_LINK_INVALID = (By.CSS_SELECTOR, "#login_link_inc")
    USER_ICON = (By.XPATH, "//i[@class='icon-user']")


class MainPageLocators():
    LOGIN_LINK = (By.CSS_SELECTOR, "#login_link")


class LoginPageLocators():
    EMAIL_LOGIN = (By.XPATH, "//input[@name='login-username']")
    PASSWORD_LOGIN = (By.XPATH, "//input[@id='id_login-password']")
    LOG_IN_BTN = (By.XPATH, "//button[@name='login_submit']")
    EMAIL_REG = (By.XPATH, "//input[@name='registration-email']")
    PASSWORD_REG = (By.XPATH, "//input[@name='registration-password1']")
    CONFIRM_PASSWORD = (By.XPATH, "//input[@name='registration-password2']")
    REGISTER_BTN = (By.XPATH, "//button[@name='registration_submit']")


class ProductPageLocators():
    ADD_TO_BASKET = (By.XPATH, "//button[@value='Add to basket']")
    ADD_TO_BASKET_USER = (By.XPATH, "//button[@type='submit']")
    PRODUCT_PRICE = (By.XPATH, "//p[@class='price_color']")
    PRODUCT_NAME = (By.XPATH, "//h1")
    PRODUCT_NAME_USER = (By.XPATH, "//h3//a")
    SUCCESS = (By.XPATH, "//strong[contains(text(),'Deferred benefit offer')]")
    MESSAGES = (By.XPATH, "//div//strong")


class BasketPageLocators():
    BASKET = (By.XPATH, "//a[@class='btn btn-default']")
    BASKET_FILL = (By.XPATH, "//div[@id='content_inner']")

0b4dddf94ba6b15193ab40676eeb9a864c67713a
<mask token>


class BasketPageLocators:
    BASKET = By.XPATH, "//a[@class='btn btn-default']"
    BASKET_FILL = By.XPATH, "//div[@id='content_inner']"

<mask token>


class LoginPageLocators:
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class ProductPageLocators:
    ADD_TO_BASKET = By.XPATH, "//button[@value='Add to basket']"
    ADD_TO_BASKET_USER = By.XPATH, "//button[@type='submit']"
    PRODUCT_PRICE = By.XPATH, "//p[@class='price_color']"
    PRODUCT_NAME = By.XPATH, '//h1'
    PRODUCT_NAME_USER = By.XPATH, '//h3//a'
    SUCCESS = By.XPATH, "//strong[contains(text(),'Deferred benefit offer')]"
    MESSAGES = By.XPATH, '//div//strong'


class BasketPageLocators:
    BASKET = By.XPATH, "//a[@class='btn btn-default']"
    BASKET_FILL = By.XPATH, "//div[@id='content_inner']"

<mask token>


class BasePageLocators:
    <mask token>
    <mask token>
    <mask token>


class MainPageLocators:
    LOGIN_LINK = By.CSS_SELECTOR, '#login_link'


class LoginPageLocators:
    EMAIL_LOGIN = By.XPATH, "//input[@name='login-username']"
    PASSWORD_LOGIN = By.XPATH, "//input[@id='id_login-password']"
    LOG_IN_BTN = By.XPATH, "//button[@name='login_submit']"
    EMAIL_REG = By.XPATH, "//input[@name='registration-email']"
    PASSWORD_REG = By.XPATH, "//input[@name='registration-password1']"
    CONFIRM_PASSWORD = By.XPATH, "//input[@name='registration-password2']"
    REGISTER_BTN = By.XPATH, "//button[@name='registration_submit']"


class ProductPageLocators:
    ADD_TO_BASKET = By.XPATH, "//button[@value='Add to basket']"
    ADD_TO_BASKET_USER = By.XPATH, "//button[@type='submit']"
    PRODUCT_PRICE = By.XPATH, "//p[@class='price_color']"
    PRODUCT_NAME = By.XPATH, '//h1'
    PRODUCT_NAME_USER = By.XPATH, '//h3//a'
    SUCCESS = By.XPATH, "//strong[contains(text(),'Deferred benefit offer')]"
    MESSAGES = By.XPATH, '//div//strong'


class BasketPageLocators:
    BASKET = By.XPATH, "//a[@class='btn btn-default']"
    BASKET_FILL = By.XPATH, "//div[@id='content_inner']"

from selenium.webdriver.common.by import By


class BasePageLocators:
    LOGIN_LINK = By.CSS_SELECTOR, '#login_link'
    LOGIN_LINK_INVALID = By.CSS_SELECTOR, '#login_link_inc'
    USER_ICON = By.XPATH, "//i[@class='icon-user']"


class MainPageLocators:
    LOGIN_LINK = By.CSS_SELECTOR, '#login_link'


class LoginPageLocators:
    EMAIL_LOGIN = By.XPATH, "//input[@name='login-username']"
    PASSWORD_LOGIN = By.XPATH, "//input[@id='id_login-password']"
    LOG_IN_BTN = By.XPATH, "//button[@name='login_submit']"
    EMAIL_REG = By.XPATH, "//input[@name='registration-email']"
    PASSWORD_REG = By.XPATH, "//input[@name='registration-password1']"
    CONFIRM_PASSWORD = By.XPATH, "//input[@name='registration-password2']"
    REGISTER_BTN = By.XPATH, "//button[@name='registration_submit']"


class ProductPageLocators:
    ADD_TO_BASKET = By.XPATH, "//button[@value='Add to basket']"
    ADD_TO_BASKET_USER = By.XPATH, "//button[@type='submit']"
    PRODUCT_PRICE = By.XPATH, "//p[@class='price_color']"
    PRODUCT_NAME = By.XPATH, '//h1'
    PRODUCT_NAME_USER = By.XPATH, '//h3//a'
    SUCCESS = By.XPATH, "//strong[contains(text(),'Deferred benefit offer')]"
    MESSAGES = By.XPATH, '//div//strong'


class BasketPageLocators:
    BASKET = By.XPATH, "//a[@class='btn btn-default']"
    BASKET_FILL = By.XPATH, "//div[@id='content_inner']"

from selenium.webdriver.common.by import By


class BasePageLocators():
    LOGIN_LINK = (By.CSS_SELECTOR, "#login_link")
    LOGIN_LINK_INVALID = (By.CSS_SELECTOR, "#login_link_inc")
    USER_ICON = (By.XPATH, "//i[@class='icon-user']")


class MainPageLocators():
    LOGIN_LINK = (By.CSS_SELECTOR, "#login_link")


class LoginPageLocators():
    EMAIL_LOGIN = (By.XPATH, "//input[@name='login-username']")
    PASSWORD_LOGIN = (By.XPATH, "//input[@id='id_login-password']")
    LOG_IN_BTN = (By.XPATH, "//button[@name='login_submit']")
    EMAIL_REG = (By.XPATH, "//input[@name='registration-email']")
    PASSWORD_REG = (By.XPATH, "//input[@name='registration-password1']")
    CONFIRM_PASSWORD = (By.XPATH, "//input[@name='registration-password2']")
    REGISTER_BTN = (By.XPATH, "//button[@name='registration_submit']")


class ProductPageLocators():
    ADD_TO_BASKET = (By.XPATH, "//button[@value='Add to basket']")
    ADD_TO_BASKET_USER = (By.XPATH, "//button[@type='submit']")
    PRODUCT_PRICE = (By.XPATH, "//p[@class='price_color']")
    PRODUCT_NAME = (By.XPATH, "//h1")
    PRODUCT_NAME_USER = (By.XPATH, "//h3//a")
    SUCCESS = (By.XPATH, "//strong[contains(text(),'Deferred benefit offer')]")
    MESSAGES = (By.XPATH, "//div//strong")


class BasketPageLocators():
    BASKET = (By.XPATH, "//a[@class='btn btn-default']")
    BASKET_FILL = (By.XPATH, "//div[@id='content_inner']")
