-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
added new methods after getattribute #2504
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
base: trunk
Are you sure you want to change the base?
Conversation
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
PR Code Suggestions ✨Explore these optional code suggestions:
|
This update currently covers the JavaScript example and English documentation. |
@harsha509 will need to review , the javascript example workflows are failing. |
updated other languages except for ruby |
User description
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
Description
This PR updates the Element Information documentation and examples to include the new Selenium 4.27+ methods:
getDomAttribute()
getDomProperty()
These methods provide a clearer distinction between HTML source attributes and live DOM properties.
The JavaScript example (information.spec.js) has been updated accordingly.
Motivation and Context
fixes #2493
Types of changes
Checklist
PR Type
Documentation, Enhancement
Description
Added new Selenium 4.27+ methods
getDomAttribute()
andgetDomProperty()
Updated documentation to clarify attribute vs property distinction
Enhanced JavaScript test examples with new methods
Improved backward compatibility guidance for
getAttribute()
Diagram Walkthrough
File Walkthrough
information.spec.js
Added new DOM attribute/property methods
examples/javascript/test/elements/information.spec.js
getDomAttribute()
method call with console logginggetDomProperty()
method call with console logginginformation.en.md
Enhanced attribute/property documentation
website_and_docs/content/documentation/webdriver/elements/information.en.md