"""
    登录页面
"""
from PageLocators.login_page_locs import LoginPageLocs as loc
from Common.basepage import Basepage


class LoginPage(Basepage):

    # 方法 - 元素操作
    # 登录
    def login(self, username, password):
        self.input_text(loc.username_loc, "登录页面_输入用户名", username)
        self.input_text(loc.password_loc, "登录页面_输入密码", password)
        self.click_element(loc.login_button_loc, "登录页面_点击登录按钮")
