摘要: appium服务基本基于npm安装,所以必须要安装nodejs,node版本要10以上,试过8.14的版本,appium-doctor无法使用。 这里不细讲怎么安装nodejs了。 (1)npm安装appium 给npm授予访问权限: npm config -g set unsafe-perm 安装 阅读全文
posted @ 2021-08-18 14:50 seesunny 阅读(680) 评论(0) 推荐(0)
摘要: def send_cmd(cmd, encoding='utf-8'): ''' cmd发送命令 :param cmd:命令 :param encoding: 编码方式,默认utf-8,出现乱码用gbk :return: ''' res = subprocess.Popen(cmd, shell=T 阅读全文
posted @ 2021-08-18 14:43 seesunny 阅读(27) 评论(0) 推荐(0)
摘要: 登录的需求是,用户连续输入3次密码错误,就将用户锁死_username=["chenxu","alex","zxf","xinxin","chenchen"] _password=["111","222","333","444","555"] userinfo={} s=0 for t in _username: userinfo[t]=_password[s] s+=1 #pr... 阅读全文
posted @ 2019-10-10 11:19 seesunny 阅读(52) 评论(0) 推荐(0)