# -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By


class LoginLocs:
    """
    登录页面元素定位
    """
#  ==================BOSS系统==========================
    # 登录账号文本框
    boss_input_user = (By.XPATH, "//input[@placeholder='请输入登录手机号']")
    # 登录密码文本框
    boss_input_password = (By.XPATH, "//input[@placeholder='请输入密码']")
    # 登录按钮
    boss_login_btn = (By.XPATH, "//button[@class = 'el-button el-button--primary']")

    # 错误提示
    boss_tip1 = (By.XPATH, "//p[@class = 'el-message__content']")
    boss_tip2 = (By.XPATH, "//div[@class = 'el-form-item__error']")

#  ==================运营商系统==========================
    # 登录账号文本框
    operator_input_user = (By.XPATH, "//input[@placeholder='账号']")
    # 登录密码文本框
    operator_input_password = (By.XPATH, "//input[@placeholder='密码']")
    # 滑动图标
    operator_img = (By.XPATH, "//div[@class='slider-btn']//img")
    # 登录按钮
    operator_login_btn = (By.XPATH, "//button[@class='el-button userbtn el-button--primary el-button--medium']")

4723fb611044e21e8a6cd5271d3cb7a4cdfb2e48
<mask token>


class LoginLocs:
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class LoginLocs:
    <mask token>
    boss_input_user = By.XPATH, "//input[@placeholder='请输入登录手机号']"
    boss_input_password = By.XPATH, "//input[@placeholder='请输入密码']"
    boss_login_btn = (By.XPATH,
        "//button[@class = 'el-button el-button--primary']")
    boss_tip1 = By.XPATH, "//p[@class = 'el-message__content']"
    boss_tip2 = By.XPATH, "//div[@class = 'el-form-item__error']"
    operator_input_user = By.XPATH, "//input[@placeholder='账号']"
    operator_input_password = By.XPATH, "//input[@placeholder='密码']"
    operator_img = By.XPATH, "//div[@class='slider-btn']//img"
    operator_login_btn = (By.XPATH,
        "//button[@class='el-button userbtn el-button--primary el-button--medium']"
        )

<mask token>


class LoginLocs:
    """
    登录页面元素定位
    """
    boss_input_user = By.XPATH, "//input[@placeholder='请输入登录手机号']"
    boss_input_password = By.XPATH, "//input[@placeholder='请输入密码']"
    boss_login_btn = (By.XPATH,
        "//button[@class = 'el-button el-button--primary']")
    boss_tip1 = By.XPATH, "//p[@class = 'el-message__content']"
    boss_tip2 = By.XPATH, "//div[@class = 'el-form-item__error']"
    operator_input_user = By.XPATH, "//input[@placeholder='账号']"
    operator_input_password = By.XPATH, "//input[@placeholder='密码']"
    operator_img = By.XPATH, "//div[@class='slider-btn']//img"
    operator_login_btn = (By.XPATH,
        "//button[@class='el-button userbtn el-button--primary el-button--medium']"
        )

from selenium.webdriver.common.by import By


class LoginLocs:
    """
    登录页面元素定位
    """
    boss_input_user = By.XPATH, "//input[@placeholder='请输入登录手机号']"
    boss_input_password = By.XPATH, "//input[@placeholder='请输入密码']"
    boss_login_btn = (By.XPATH,
        "//button[@class = 'el-button el-button--primary']")
    boss_tip1 = By.XPATH, "//p[@class = 'el-message__content']"
    boss_tip2 = By.XPATH, "//div[@class = 'el-form-item__error']"
    operator_input_user = By.XPATH, "//input[@placeholder='账号']"
    operator_input_password = By.XPATH, "//input[@placeholder='密码']"
    operator_img = By.XPATH, "//div[@class='slider-btn']//img"
    operator_login_btn = (By.XPATH,
        "//button[@class='el-button userbtn el-button--primary el-button--medium']"
        )

# -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By


class LoginLocs:
    """
    登录页面元素定位
    """
#  ==================BOSS系统==========================
    # 登录账号文本框
    boss_input_user = (By.XPATH, "//input[@placeholder='请输入登录手机号']")
    # 登录密码文本框
    boss_input_password = (By.XPATH, "//input[@placeholder='请输入密码']")
    # 登录按钮
    boss_login_btn = (By.XPATH, "//button[@class = 'el-button el-button--primary']")

    # 错误提示
    boss_tip1 = (By.XPATH, "//p[@class = 'el-message__content']")
    boss_tip2 = (By.XPATH, "//div[@class = 'el-form-item__error']")

#  ==================运营商系统==========================
    # 登录账号文本框
    operator_input_user = (By.XPATH, "//input[@placeholder='账号']")
    # 登录密码文本框
    operator_input_password = (By.XPATH, "//input[@placeholder='密码']")
    # 滑动图标
    operator_img = (By.XPATH, "//div[@class='slider-btn']//img")
    # 登录按钮
    operator_login_btn = (By.XPATH, "//button[@class='el-button userbtn el-button--primary el-button--medium']")
