Example #1
0
 def goto_login(self):
     self.driver.find_element(By.LINK_TEXT, "企业登录").click()
     return Login(self.driver)
Example #2
0
 def goto_login(self):
     """跳转登陆页面"""
     self._driver.find_element_by_link_text("企业登录").click()
     return Login(self._driver)
Example #3
0
 def goto_login(self):  # 封装PO,企业微信首页的企业登录抽象为goto_login方法
     self.find((By.LINK_TEXT, "企业登录")).click()
     return Login(self._driver)  # click完如果跳转到新的页面,则返回新的页面(即PO)
Example #4
0
 def goto_login(self):
     self.find((By.LINK_TEXT, "企业登录")).click()
     return Login(self._driver)
Example #5
0
 def goto_login(self):
     # 点击登录按钮
     self.driver.find_element(By.CSS_SELECTOR,
                              ".index_top_operation_loginBtn").click()
     # 跳转登录页面
     return Login(self.driver)
Example #6
0
 def goto_login(self):
     self._driver.find_element(By.LINK_TEXT, "企业登录").click()
     # 创建Login实例后,可调用Login中的方法
     return Login(self._driver)