上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
摘要: python selenium 使用unittest 示例 并等待某个元素示例 阅读全文
posted @ 2018-01-22 18:53 testway 阅读(348) 评论(0) 推荐(0)
摘要: 使用appium的 Connection 和driver 的setConnection方法,可以切换手机的上网方式 // 切换到wifi Connection cnn = Connection.WIFI; driver.setConnection(cnn); // 切换到手机网络数据 cnn = Connection.DATA; driver.setConnection(cnn); // 切换到... 阅读全文
posted @ 2018-01-11 11:57 testway 阅读(2837) 评论(0) 推荐(0)
摘要: 用adb 命令把图片和uix获取出来,再导入uiautomatorviewer adb shell uiautomator dump /data/local/tmp/uidump.uixadb pull /data/local/tmp/uidump.uixadb shell screencap -p 阅读全文
posted @ 2018-01-11 09:13 testway 阅读(1208) 评论(4) 推荐(0)
摘要: 使用uiautomatorviewer 查看android某些页面元素,出现错误Error obtaining UI hierarchy Reason: Error taking device screenshot: null 使用adb 的screencap 截图,拉取出来的图片大小也为0kb。 阅读全文
posted @ 2018-01-10 17:42 testway 阅读(2522) 评论(2) 推荐(0)
摘要: if (service == null || !service.isRunning()){ throw new AppiumServerHasNotBeenStartedLocallyException("An appium server node is not started!"); } 示例中 阅读全文
posted @ 2018-01-02 15:07 testway 阅读(2006) 评论(0) 推荐(0)
摘要: Python把同一个对象循环赋值给另外一个变量,修改一个对象,其他对象也修改了 如果不想复制对象,可以在循环赋值前初始化下被赋值的变量 阅读全文
posted @ 2017-12-25 11:53 testway 阅读(5362) 评论(0) 推荐(0)
摘要: 执行python + selenium 代码 报错:FileNotFoundError: [WinError 2] 系统找不到指定的文件。 D:\pycode\test\venv\Scripts\python.exe D:/pycode/test/Testa/test01.pyTraceback ( 阅读全文
posted @ 2017-12-21 11:18 testway 阅读(60309) 评论(1) 推荐(1)
摘要: 尝试使用python + selenium + pycharm 做自动化测试, 命令行pip install selenium 安装了selenium。但是使用pycharm 新建一个测试项目后并新建一个test01.py 文件 在文件中导入selenium 包,from selenium impo 阅读全文
posted @ 2017-12-21 10:31 testway 阅读(7248) 评论(1) 推荐(4)
摘要: 在旧版本的appium,重新启动apk,调用startActivity方法可以随意启动一个app,并传入一个package name 和启动activity name的名称。语句如下: 更新到新版本后,这种方法无法再使用 查阅帮助文档,startActivity修改为: This method sh 阅读全文
posted @ 2017-12-13 14:34 testway 阅读(3593) 评论(2) 推荐(2)
摘要: 下载 安装https://git-scm.com/download 安装完毕,打开Git Bash进入目录初始化,git init添加文件git add abc.txt 或者 git add -Agit status提交git commit -m "add abc.txt." 创建分支git bra 阅读全文
posted @ 2017-12-12 14:13 testway 阅读(305) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页