Example #1
0
class BasePage(object):
    def __init__(self):
        self.driver = AndroidClient().driver

    def find(self, kv) -> WebElement:
        return self.driver.find_element(*kv)

    def back(self):
        self.driver.back()
Example #2
0
 def main(cls):  # 这里要改成cls,不应该是self
     AndroidClient.restart_app()
     return MainPage()
Example #3
0
 def main(self):
     AndroidClient.restart_app()
     return MainPage()
Example #4
0
File: App.py Project: sisul1204/xq9
 def main(cls):
     AndroidClient.restartApp()
     return MainPage()
Example #5
0
 def __init__(self):
     self.driver = AndroidClient().driver
Example #6
0
 def __init__(self):
     AndroidClient.restart_app()
Example #7
0
from page_object.driver.AndroidClient import AndroidClient

Mi = AndroidClient().installAPP()

Mi.find_element_by_xpath()