Repository navigation
Update the method collection for Selenium 4 - #2
Merged
Merged
Conversation
The tables documented the Selenium 3 API. Most of it no longer exists: the find_element_by_* helpers were removed in 4.3, the switch_to_* methods and desired_capabilities are gone, and start_session now takes capabilities. - Rewrite WebDriver, alert and action chain tables for Selenium 4 (By locators, driver.switch_to, capabilities, new window and scroll APIs, centre-based offsets), and add a Selenium 3 to 4 migration table. - Add WebElement and waits/select pages, which were missing. - Fix duplicate rows and copy errors (refresh and implicitly_wait listed twice, current_url described as the title). - Add tools/check_methods.py and a monthly CI job that checks every documented name against the latest Selenium, so the docs cannot go stale silently again. - Use relative links in the README. Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: the tables documented the Selenium 3 API. Most of those methods no longer exist: the
find_element_by_*helpers were removed in 4.3, theswitch_to_*methods anddesired_capabilitiesare gone, and a few rows were duplicated or described the wrong thing.After: every page matches Selenium 4.54.0, with new pages for WebElement methods and for waits and Select, plus a Selenium 3 to 4 migration table. A monthly CI job checks every documented name against the latest Selenium, so the docs can't go stale silently again.
How: rewrote the WebDriver, alert and action chain tables (By locators,
driver.switch_to, capabilities, new window and scroll APIs), addedelement-methods.mdandwaits.md, fixed the duplicate and miscopied rows, and addedtools/check_methods.pywith.github/workflows/check.yml. All 134 documented names pass against 4.54.0, and the checker flags a removed name when one is introduced. README links are now relative.Generated by Claude Code