我目前也没有找到解决的办法
想问一下微信更了新的 X5,和微信的版本有关系么?
赞,正想要学习一下 gradle
java + appium +testNG+ jenkins
就是将测试用例写成自动化脚本
想问下,目前你切换稳定么?
测试机微信给我自动升级了,很气,然后替换 chromedriver2.20 确实 ok,就是不知道稳不稳定
这个倒没有试过
不过,可能是这样子写吧
@Listeners(.class)
public class listenerTest {
@Test
public void test1(){
}
@Test
public void test2(){
}
}
哈哈哈希望能帮到你
继续努力哈哈,当你觉得不错的时候就要告自己还差很远呢
非常感谢楼主啊!解决我头疼很久的问题!
andriod 版本 appium 版本 chromedriver 版本 说下
楼主用的 java-client-5.0.0-BETA5.jar 是那个版本的??
我使用的是搜狗输入法 然后用了以下的方法解决了
excuteAdbShell("adb shell ime set com.sohu.inputmethod.sogou/.SogouIME");
//再次点击输入框,调取键盘
driver.findElementByXPath("//android.widget.EditText[@text='**********']").click();
//点击右下角的搜索,即ENTER键
driver.pressKeyCode(AndroidKeyCode.ENTER);
/**
* 执行adb命令
* @param s 要执行的命令
*/
private void excuteAdbShell(String s) {
Runtime runtime=Runtime.getRuntime();
try{
runtime.exec(s);
}catch(Exception e){
System.out.println("执行命令:"+s+"出错");
}
查看真机中的输入法的方法:
在 cmd 中 输入
adb shell ime list -s
楼主解决了么??
通过设置 Internet Properties->connections->LAN settings, set 'Bypass proxy server for local addresses'
这个设置在哪里啊,想请问一下
想请问一下,就是切换之后一直在等待状态是什么原因呢?
然后有时能成功进行转换后的操作,有时候又不行。
[36minfo[39m: Chromedriver: Changed state to 'starting'
[36minfo[39m: Chromedriver: Set chromedriver binary as: C:\Program Files\Appium\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe
[36minfo[39m: Chromedriver: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %a))
[36minfo[39m: Chromedriver: No old chromedrivers seemed to exist
[36minfo[39m: Chromedriver: Spawning chromedriver with: C:\Program Files\Appium\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe --url-base=wd/hub --port=9515
[36minfo[39m: Chromedriver: [STDOUT] Starting ChromeDriver 2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a) on port 9515
Only local connections are allowed.
[36minfo[39m: JSONWP Proxy: Proxying [GET /status] to [GET http://127.0.0.1:9515/wd/hub/status] with no body
[36minfo[39m: JSONWP Proxy: Got response with status 200: "{\"sessionId\":\"\",\"status\":0,\"value\":{\"build\":{\"version\":\"alpha\"},\"os\":{\"arch\":\"x86_64\",\"name\":\"Windows NT\",\"version\":\"6.1 SP1\"}}}"
[36minfo[39m: JSONWP Proxy: Proxying [POST /session] to [POST http://127.0.0.1:9515/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"args":[],"extensions":[],"androidProcess":"com.tencent.mm:tools","androidDeviceSerial":"DBH9X...
[36minfo[39m: Shutting down appium session
[36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"9a59fc16f0e2597ef205cad6275ca31c","status":100,"value":{"message":"chrome not reachable\n (Driver info: chromedriver=2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=W...
[36minfo[39m: JSONWP Proxy: Proxying [POST /session] to [POST http://127.0.0.1:9515/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"args":[],"extensions":[],"androidProcess":"com.tencent.mm:tools","androidDeviceSerial":"DBH9X...
[36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"9034159efd8e429fca558c83cb652a75","status":0,"value":{"acceptSslCerts":true,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{},"cssSel...
[36minfo[39m: Chromedriver: Changed state to 'online'
好像是在微信中要打开 debugx5
我想问下 我再转换后打印 driver.getcontext() 有时能打印出来,有时就不能。能的时候就可以执行下一步的元素点击操作了。
这是什么情况呢?
试试点 uiautomatorViewer 的 device screenshot with compressed hierarchy 按钮