Пример #1
0
 def home(self, action: ElementActions):
     action.driver.wait_activity(self.activity, 8, interval=0.3)
     try:
         action.click(self.关闭初始化弹出窗, wait=3)
     except:
         log.info('无弹窗需要关闭,所以不会找到元素 关闭初始化弹出窗')
     action.tap(self.关闭初始化浮窗)
Пример #2
0
 def pageinto(self, action: ElementActions):
     from .set import ProductPages as p
     p.特卖首页.pageinto(action)
     action.tap(p.特卖首页.进入用户中心按钮)