-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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]: element.get_dom_attribute("checked")
for a checked checkbox element is not returning True
#14800
Comments
@mdmintz, 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, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Can I see the exact HTML for this? What happens when you do this in other browsers?
…On 25 Nov 2024 at 18:59 +0000, Michael Mintz ***@***.***>, wrote:
Screenshot.2024-11-25.at.1.58.26.PM.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
To read the checked state
and these are only the points i can recall, without even beeing in the discussion at the tlc meeting. |
What @jimevans said is oversimplified (his words). Most of the times attributes and properties are mirrored so won't matter. |
It's still being used in Selenium
So either the deprecation must be removed, or all instances of |
Lots of places where Perhaps removing the deprecation is the best option for the time being. |
We can also update the instances of |
We are going to revert this. Thanks, @VietND96, for creating the PR. For 4.28, we will put back the deprecation code AND replace all the usages of |
Thank you, @VietND96! |
What happened?
element.get_dom_attribute("checked")
for a checked checkbox element is not returning TrueIn
4.27.0
,element.get_attribute()
was deprecated in favor ofelement.get_dom_attribute()
. However, the new method does not get the correct results, as in the following example where I was determining whether or not a checkbox was checked:How can we reproduce the issue?
Relevant log output
Operating System
Any
Selenium version
Python - 4.27.0
What are the browser(s) and version(s) where you see this issue?
Chrome
What are the browser driver(s) and version(s) where you see this issue?
Latest
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: