-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Refactor isDisplayed atom to remove Closure library code #15528
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
The Closure library adds a lot of complexity to the compiled and minified atoms, including for isDisplayed. Additionally, the web platform has evolved in the time since the atoms were originally written, with additional methods added that help simplify the atom. This commit removes (nearly) all of the Closure code from the specific atom used by the isDisplayed method in the various language bindings.
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@AutomatedTester @shs96c Here's the patch we paired on at SeConf in Valencia. Feel free to merge at your discretion. |
@jimevans you have to sign the CLA for @jimevanssfdc |
User description
The Closure library adds a lot of complexity to the compiled and minified atoms, including for isDisplayed. Additionally, the web platform has evolved in the time since the atoms were originally written, with additional methods added that help simplify the atom. This commit removes (nearly) all of the Closure code from the specific atom used by the isDisplayed method in the various language bindings.
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement, Bug fix
Description
Refactored
isDisplayed
atom to remove Closure library dependencies.Simplified visibility checks using modern web platform methods.
Improved handling of
<map>
and<area>
elements for visibility determination.Enhanced overflow and size-based visibility logic for better accuracy.
Changes walkthrough 📝
dom.js
Refactored `isDisplayed` atom for modern web standards
javascript/atoms/dom.js
and
visibility checks.