def prepare(self): try: Web.show_wait(By.ID,"username",timeout=15) except: Web.open_page()
def login_fail_button(self): element = Web.show_wait(By.XPATH, "/html/body/div[6]/div/div/div[3]/button") return element
def verifycode_text(self): element = Web.show_wait(By.ID, "verifycode") element.clear() return element
def password_text(self): element = Web.show_wait(By.ID, "password") element.clear() return element
def username_text(self): element = Web.show_wait(By.ID, "username") element.clear() return element
def loginout_link(self): element = Web.show_wait(By.PARTIAL_LINK_TEXT, "注销") return element