# @Time : 2020-03-02 14:31
from selenium.webdriver.common.by import By

from appium_test.page.base_page import BasePage


class CenterPage(BasePage):
    def login_by_password(self, name, pwd):
        self.find(By.XPATH, "//*[@text='帐号密码登录']").click()
        self.find(By.ID, "login_account").send_keys(name)
        self.find(By.ID, "login_password").send_keys(pwd)
        self.find(By.ID, "button_next").click()
        return self

    def get_error_msg(self) -> str:
        msg = self.find(By.ID, "md_content").get_attribute("text")
        return msg

6c516ec10dc43d5145fa3b85c1ad6580c341fd49
<mask token>


class CenterPage(BasePage):
    <mask token>
    <mask token>

<mask token>


class CenterPage(BasePage):
    <mask token>

    def get_error_msg(self) ->str:
        msg = self.find(By.ID, 'md_content').get_attribute('text')
        return msg

<mask token>


class CenterPage(BasePage):

    def login_by_password(self, name, pwd):
        self.find(By.XPATH, "//*[@text='帐号密码登录']").click()
        self.find(By.ID, 'login_account').send_keys(name)
        self.find(By.ID, 'login_password').send_keys(pwd)
        self.find(By.ID, 'button_next').click()
        return self

    def get_error_msg(self) ->str:
        msg = self.find(By.ID, 'md_content').get_attribute('text')
        return msg

from selenium.webdriver.common.by import By
from appium_test.page.base_page import BasePage


class CenterPage(BasePage):

    def login_by_password(self, name, pwd):
        self.find(By.XPATH, "//*[@text='帐号密码登录']").click()
        self.find(By.ID, 'login_account').send_keys(name)
        self.find(By.ID, 'login_password').send_keys(pwd)
        self.find(By.ID, 'button_next').click()
        return self

    def get_error_msg(self) ->str:
        msg = self.find(By.ID, 'md_content').get_attribute('text')
        return msg

# @Time : 2020-03-02 14:31
from selenium.webdriver.common.by import By

from appium_test.page.base_page import BasePage


class CenterPage(BasePage):
    def login_by_password(self, name, pwd):
        self.find(By.XPATH, "//*[@text='帐号密码登录']").click()
        self.find(By.ID, "login_account").send_keys(name)
        self.find(By.ID, "login_password").send_keys(pwd)
        self.find(By.ID, "button_next").click()
        return self

    def get_error_msg(self) -> str:
        msg = self.find(By.ID, "md_content").get_attribute("text")
        return msg
