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