今天手贱,升级了最新的 appium1.8.1 以及 WebDriverAgent, 然后,click element 就报错了

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not find :session section for url: /wd/hub/session/2649babb-b1d9-483a-af2e-fe7873abe92b/element/1D000000-0000-0000-3F01-000000000000/click

有没有大神也碰到了这样的问题,求教!!!!

附上 Appium server log:

[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/FC8BEF5B-C4C0-4B20-A4D5-A626E428FF45/element] with body: {"using":"accessibility id","value":"Login"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"ELEMENT":"1D000000-0000-0000-3F01-000000000000"},"sessionId":"FC8BEF5B-C4C0-4B20-A4D5-A626E428FF45","status":0}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"1D000000-0000-0000-3F01-000000000000"}
[HTTP] <-- POST /wd/hub/session/2649babb-b1d9-483a-af2e-fe7873abe92b/element 200 335 ms - 122
[HTTP] 
[HTTP] --> POST /wd/hub/session/2649babb-b1d9-483a-af2e-fe7873abe92b/element/1D000000-0000-0000-3F01-000000000000/click
[HTTP] {"id":"1D000000-0000-0000-3F01-000000000000","sessionId":"2649babb-b1d9-483a-af2e-fe7873abe92b"}
[W3C] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command 'proxyReqRes'
[W3C] Encountered internal error running command: Error: Could not proxy. Proxy error: Could not find :session section for url: /wd/hub/session/2649babb-b1d9-483a-af2e-fe7873abe92b/element/1D000000-0000-0000-3F01-000000000000/click
[W3C]     at doJwpProxy$ (/usr/local/lib/node_modules/appium/node_modules/_appium-base-driver@2.33.0@appium-base-driver/lib/protocol/protocol.js:456:13)
[W3C]     at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
[W3C]     at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:315:22)
[W3C]     at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:100:21)
[W3C]     at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session/2649babb-b1d9-483a-af2e-fe7873abe92b/element/1D000000-0000-0000-3F01-000000000000/click 500 91 ms - 1555
[HTTP] 
[HTTP] --> GET /wd/hub/session/2649babb-b1d9-483a-af2e-fe7873abe92b/screenshot
[HTTP] {}
[debug] [W3C] Calling AppiumDriver.getScreenshot() with args: ["2649babb-b1d9-483a-af2e-fe7873abe92b"]


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