Swipe 报错:org.openqa.selenium.WebDriverException: Not yet implemented.

java 代码如下:

        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();

报错如下:

> 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"}

有出现这个问题的伙伴吗?


↙↙↙阅读原文可查看相关链接,并与作者交流