def setUpClass(cls): cls.driver = appium_start() cls.driver.implicitly_wait(5) cfg = ConfigParser() cfg.read(config_path, encoding="u8") cls.tel_authorize = cfg.get("authorize", 'tel_authorize') cls.close_reward = cfg.get("reward", 'close_reward')
def setUpClass(self): self.driver = appium_config.appium_start() self.swipe = MobileSwipe()
self.arg = arg def El_chuanjianzit(self): el_id_click(self.arg, cfg.get('shouye', 'el_createfont')) def El_geren(self): el_id_click(self.arg, cfg.get('shouye', 'el_personal')) def El_shouye(self): el_id_click(self.arg, cfg.get('shouye', 'el_home')) def El_xiaoxi(self): el_id_click(self.arg, cfg.get('shouye', 'el_messge')) def El_zitiye(self): el_id_click(self.arg, cfg.get('shouye', 'el_fonts')) def El_sosuo(self): el_id_click(self.arg, cfg.get('shouye', 'el_find')) def El_faxian(self): el_id_click(self.arg, cfg.get('shouye', 'el_discover')) def El_xieyi(self): el_id_click(self.arg, cfg.get('shouye', 'agreement')) dirver = appium_start() # print("qidong activity") # dirver.wait_activity("com.handwriting.makefont/com.handwriting.makefont.personal.ActivityEditInfoChangeEmail.avtivity",10,1) # print ("end")