-
Notifications
You must be signed in to change notification settings - Fork 763
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
Add keywords to fetch differentiated element Attribute or Property #1822
Comments
Some of my initial notes on Element Attributes and Properties
Questions either worth asking or expected from end users
|
I ask over on the Selenium Slack channel about the difference between an attribute and a property, asking
Jim Evans, a Selenium core developer, responded with
This reinforces my idea that one can get a list of DOM attributes from the HTML spec; in particular Section 4 Sematics which covers all the elements. These are attributes one sees when looking at the DOM. It should be noted that not all attribute are visible but still have a "value". The properties of an element are also documented. For example an HTML Element will have these properties. Properties can be seen by through Chrome's DevTools. Or they can be inquire through the Console tab within Chrome using |
Fixed in #1850 |
Selenium 4 add the capabilities to get the element's actual property or attribute based upon the value found within the DOM. These differ from the previous implementation which could get either based upon the context.
References:
get_dom_attribute method
get_property method
Selenium 4 - Element Attribute and Property Methods
The text was updated successfully, but these errors were encountered: