-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Proxy error happens when we run test in Chrome Driver following W3C protocol #234
Comments
It is because the server side doesn't support W3C spec windows handler even the client works for W3C protocol, I assume.
|
appium-server-logs.txt |
Thanks! Does it happen only WebView context?
According to http://chromedriver.chromium.org/downloads , chrome driver supports W3C spec over 2.37. You use |
Yes, it only happens in the WebView context. |
Thanks!
|
ah... I see. Thanks for it! Using |
I used the latest mobile phone to test the 2.39 version of the driver. There is no such problem. Thanks! |
Perfect 👍 Let me add a warning message and suggestions in somewhere for the case. |
That's great, thank you very much for helping me answer the question. |
in commit(add appium prefix in create session and fix find_elements for W3C (#196)),
The problem is as follows: I am from China, China's WeChat is very hot, you should know. I used the 0.26 version before. In the WeChat test, when I test the public number, I need to switch to webview first, then switch to window_handles, the code is normal; last Friday I upgraded to version 0.28 and found an error in the driver.window_handles code. : "/session/$sessionId/window/handles" unkown command.
The following steps to deal with the problem
2, I further compare the update code twice, this time update the code _make_w3c_caps () method 73,74 lines, plus appium_prefix, will cause the proxy request response does not have a status field, resulting in the start_session () method The value of self.w3c is true;
4, I tried to comment out the code to add appium_prefix, will return the status field normally, and correctly execute self.execute(Command.GET_WINDOW_HANDLES)['value'], /session/$sessionId/window_handles.
5, I don't know if the appium_prefix related code will be commented out, it will affect other functions, I hope to fix it as soon as possible.
The text was updated successfully, but these errors were encountered: