-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find_element() returns dict
instead of WebElement
.
#654
Comments
Could you share the appium log (esp the response) and Python client dependencies (selenium client version)?
|
Btw, I noticed the app/driver was I think WinAppDriver has not supported W3C webdriver spec yet. |
Could you tell me how to get appium log? I'm using |
The appium log is the text produced by the appium server. You don't need a client to get it. |
or you can specify I guess the response does not have |
Here is the log. |
It looks like the attached log issued
|
The log had the below. The WinAppDriver still did not support W3C spec.
Some commands should not work with Appium Python client v2 as my previous comment in #654 (comment) |
I see Appium does patch responses, so the client receives the correct response:
note the presence of |
So, what python does looks like
and what we get in the client response is not put into |
Yes, the patch for the element response worked. The original reported issue was
, but the log had It means python client sent |
So the code looks good so far. Appium does patch JWP responses properly. Also |
Sorry for the complication. I wasn't using Appium when I had the first problem, but when I logged it I used Appium Server v1.22.0 with GUI. When I logged it, the Attribute Error did not occur as you said. |
So, this meant appium-python-client version, and the issue occurred when you used appium-python-client to WinAppDriver without appium. Is it correct? Then, there is no proxy layer to convert protocol between the client and the WAD as appium does. |
I think it is correct. |
The problem
When I call
find_element
, it returnsdict
instead ofWebElement
.Environment
Code To Reproduce Issue
The text was updated successfully, but these errors were encountered: