def setup_class(self): self.driver = getDriver("com.yunmall.lc", "com.yunmall.ymctoc.ui.activity.MainActivity") self.pageSet = PageSetting(self.driver) self.pageBai = PageBiaNian(self.driver) # 登录 self.pageBai.page_login_all() # 点击地址管理 self.pageSet.page_click_address_manage()
def setup_class(self): self.driver = getDriver("com.yunmall.lc", "com.yunmall.ymctoc.ui.activity.MainActivity") self.page = PageBiaNian(self.driver) self.page_set = PageSetting(self.driver) # 点击我的 self.page.page_click_my_btn() # 点击登录连接 self.page.page_click_link_btn()
def setup(self): # 获取driver self.driver=get_driver() # 实例化setting页面对象 self.setting = PageSetting(self.driver)
def page_get_setting(self): return PageSetting(driver)
def setup(self): self.driver = get_driver() self.setting = PageSetting(self.driver)
def setup(self): # 获取driver self.driver = get_driver("com.android.settings", ".Settings") # 实例化页面对象 self.setting = PageSetting(self.driver)
def setup_class(self): self.driver = get_driver() # 实例化 PageSetting self.setting = PageSetting(self.driver)
def page_get_setting_object(self): return PageSetting(self.driver)