51Testing软件测试论坛
标题:
Day2-7测试积点任务
[打印本页]
作者:
测试积点老人
时间:
2018-5-10 13:32
标题:
Day2-7测试积点任务
问题:
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>
复制代码
有出现这个问题的伙伴吗?
作者:
qqq911
时间:
2018-5-15 11:19
WebDriver的版本问题
作者:
jingzizx
时间:
2018-5-15 11:21
怎么是服务断开了?
作者:
jingzizx
时间:
2018-5-15 11:23
怎么是服务断开了?
作者:
海海豚
时间:
2018-5-15 13:23
WebDrive的问题
作者:
abcsell
时间:
2018-5-15 13:34
怎么是服务断开了
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2