-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[🐛 Bug]: Python + Selenium 4.0+ (AttributeError: 'dict' object has no attribute 'click') #10171
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
Comments
@ElenaStepuro, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
First, this error doesn't make sense. If Selenium is getting a return value from I still tried to reproduce with a Selenium server, but this code works fine for me:
That said, you shouldn't be setting What is running on port |
Hello @titusfortner ! |
I encountered a similar problem during the use of Appium, At this time, find_elenment returned a dict instead of a WebElement. Unfortunately I cannot reproduce this problem, Can you print out the return value of find_element, @ElenaStepuro ? |
Oh, this makes sense, this is the JSON Wire Protocol signature for elements. You aren't getting a w3c response from the driver. |
Hello @dongfangtianyu ! |
Somehow you are getting a jwp session. It should default to w3c, so you're doing something weird. Appium is slightly harder to get a w3c session. What is standard out on your console? |
I can duplicate this error by setting:
@ElenaStepuro send the exact code you are using, and the console output from the grid. Something it is seeing wants to toggle JSON Wire Protocol, which should not be happening with what you've provided, so something is missing @dongfangtianyu Getting w3c compliant Appium session is a little trickier. |
Since this is user setting issues and not a problem with Selenium code, I'm closing this. If people need additional assistance, you can |
I had the same error. For me the solution was to update the chromedriver to latest version |
yeap, me too |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
During running tests on Python faced with issue: AttributeError: 'dict' object has no attribute 'click'
which didn't see on Selenium 3.141
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
4.0.0 and 4.1.0
What are the browser(s) and version(s) where you see this issue?
Chrome 94, 95, 96
What are the browser driver(s) and version(s) where you see this issue?
Remote
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: