-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[🐛 Bug]: FIND_ELEMENT command return a dict object value #9978
Comments
@VladimirPodolyan, 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
After troubleshooting the issue, please add the Thank you! |
davidburns in ~/development/selenium on trunk ● λ python3
Python 3.9.4 (default, Apr 5 2021, 01:50:46)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> driver = webdriver.Chrome()
>>> driver.get('https://www.selenium.dev/')
>>> from selenium.webdriver.common.by import By
>>> element = driver.find_element(by=By.CSS_SELECTOR, value='input[type=search]')
>>> element.click()
>>> webdriver.__version__
'4.0.0' This seems to work for me. |
@AutomatedTester Your proposal also not works for me (Pdb) element.click()
*** AttributeError: 'dict' object has no attribute 'click'
(Pdb) element
{'ELEMENT': '0.6220019529147716-1'}
(Pdb) webdriver.__version__
'4.0.0' |
it looks like you're connecting to a very old version of Chromedriver, it seems to be returning a the wrong shaped object. What version of chromedriver are you using? |
@AutomatedTester Yeah, you right. I downloaded the latest |
no worries, glad we got it sorted! |
hello, I am having the same issue as @VladimirPodolyan, but I need to stick to the chromedriver v93 due to the test environment where is chrome v93 installed... is there a way how to proceed anyway? |
I was figured it out. It's caused due to using and passing |
Same issue, Just migrated back to the previous version and it worked fine, seems like it is only in the Chrome Driver Part |
I have the same issue: chrome v95,v96, edge v96,v97 Selenium v4.0.0 with python v3.10.0, not in v3.9.7: chrome v95:
shadow_root:{'ELEMENT': '0.06690798850173985-2'} msedge v97:
To get shadow-root I execute the javascript:
|
@VladimirPodolyan Thank you. I have got the same issue with next environment:
Tried to experiment with "chrome driver" options and when I disabled |
Hi, I have same problems with 'version': '96.0.4664.45' return dict element with remote webdriver |
Yup having the same issue here, but we arn't using the w3c option. Will try updating chrome drivers and see if that helps |
I have problems with remote chromium version: 98.0.4727.0 |
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?
I was updated my selenium version to 4.0.0 from 3.141.0. After that
webdriver.find_element()
returns dict value, butWebElement
is expected in that case. Bug reproduced with attached code in 4.0.0 and not relevant for 3.141.0 version.In images you can review the difference in that versions for return of
webdriver.find_element()
How can we reproduce the issue?
Relevant log output
Operating System
MacOS Big Sur
Selenium version
4.0.0
What are the browser(s) and version(s) where you see this issue?
Chrome 94.0.4606.81
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 94.0.4606.61
Are you using Selenium Grid?
The text was updated successfully, but these errors were encountered: