Closed
Description
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
- I rolled back to version 0.26 and found that the command used for the log here is: "/session/$sessionId/window_handles"
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; - When I execute driver.window_handles, the source code is based on self.w3c and will execute self.execute(Command.W3C_GET_WINDOW_HANDLES)['value']. However, this command format reports an error on the app: unkown command(/session/$sessionId /window/handles).
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.
Metadata
Metadata
Assignees
Labels
No labels