摘要: 使用appium在android7.0真机上测试程序时报错command failed shell “ps ‘uiautomator’”的解决方式 appium目前最新的windows版本是1.4.16,在android7.0真机上测试程序时会报错:command failed shell “ps 阅读全文
posted @ 2017-08-10 15:31 fgzhangjack 阅读(180) 评论(0) 推荐(0) 编辑
摘要: //启动 // set up appium // File classpathRoot = new File(System.getProperty("user.dir")); // File appDir = new File(classpathRoot, "apps"); // File app 阅读全文
posted @ 2017-06-07 11:15 fgzhangjack 阅读(997) 评论(0) 推荐(0) 编辑
摘要: 环境:Android 6.0.1+appium 1.4.16.1 在上面环境中执行微信公众号中的H5测试,发现driver.available_contexts 有时候返回:webview_undefined,有时候返回:com.tencent.mm:tools 只针对Android 6.0+的解决 阅读全文
posted @ 2017-05-17 11:04 fgzhangjack 阅读(616) 评论(0) 推荐(0) 编辑
摘要: appium测试微信公众号的时候 切换webview报找不到contextdriver.context("WEBVIEW_com.tencent.mm:tools");io.appium.java_client.NoSuchContextException: No such context foun 阅读全文
posted @ 2017-05-17 10:55 fgzhangjack 阅读(2500) 评论(0) 推荐(0) 编辑
摘要: 针对css伪元素定位需要使用cssSelector 使用firebug检查 css路径是否正确 原博: http://blog.csdn.net/xyh421/article/details/68067575 阅读全文
posted @ 2017-04-18 10:36 fgzhangjack 阅读(2987) 评论(1) 推荐(0) 编辑
摘要: public static void switchWebView() { Set<String> contextNames = driver.getContextHandles(); for (String contextName : contextNames) { System.out.print 阅读全文
posted @ 2017-04-05 10:36 fgzhangjack 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1.org.openqa.selenium.SessionNotCreatedException: null (WARNING: The server did not provide any stacktrace information) 请勾选它Override Existing Session 阅读全文
posted @ 2017-03-30 14:01 fgzhangjack 阅读(389) 评论(0) 推荐(0) 编辑
摘要: XPath 路径表达式 XPath 使用路径表达式来选取 Html 中的节点或者节点集。 表达式 描述 nodename 选取此节点的所有子节点。 / 从根节点选取。 // 从匹配选择的当前节点选择文档中的节点,而不考虑它们的位置。 . 选取当前节点。 .. 选取当前节点的父节点。 @ 选取属性。 阅读全文
posted @ 2017-03-30 12:55 fgzhangjack 阅读(2912) 评论(0) 推荐(0) 编辑