TA的每日心情 | 擦汗 7 小时前 |
---|
签到天数: 527 天 连续签到: 4 天 [LV.9]测试副司令
|
1测试积点
问题:
Appium 1.4.16.1 和 java-client 4.0.0,使用过程中 swipe 报错
目录
Swipe报错:org.openqa.selenium.WebDriverException: Not yet implemented.
java代码如下:
- <font face="微软雅黑" size="3">
- driver.findElement(By.className("head")).click();
- // int x = driver.manage().window().getSize().width;
- // int y = driver.manage().window().getSize().height;
- //滑动4/5
- driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
- // driver.swipe(x/2,y,x/2,y/5,3000);
- Set<String> context = driver.getContextHandles();
- for(String str : context){
- System.out.println(str);
- if (context.contains("WEBVIEW_1")){
- driver.context("WEBVIEW_1");
- System.out.println("切换到webview模式");
- }
- }
- driver.swipe(360,1000,360,200,1000);
- driver.findElement(By.id("logout")).click();</font>
复制代码
报错如下:
- <font face="微软雅黑" size="3">> info: [debug] Responding to client that a method is not implemented
- > info: <-- POST /wd/hub/session/99806bc8b7ee363a93d75bf4ee7e8f7e/touch/perform 501 2.864 ms - 154
- > info: --> DELETE /wd/hub/session/99806bc8b7ee363a93d75bf4ee7e8f7e {}
- > info: Shutting down appium session
- > info: Chromedriver: Changed state to 'stopping'
- > info: JSONWP Proxy: Proxying [DELETE /] to [DELETE http://127.0.0.1:9515/wd/hub/session/99806bc8b7ee363a93d75bf4ee7e8f7e] with no body
- > info: JSONWP Proxy: Got response with status 200: "{\"sessionId\":\"99806bc8b7ee363a93d75bf4ee7e8f7e\",\"status\":0,\"value\":null}"
- > info: Chromedriver: Changed state to 'stopped'
- > info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}</font>
复制代码
有出现这个问题的伙伴吗?
|
|