Skip to content

Update the method collection for Selenium 4 - #2

Merged
surevs merged 1 commit into
masterfrom
selenium-4
Nov 28, 2026
Merged

surevs merged 1 commit into
masterfrom
selenium-4

Conversation

@surevs

@surevs surevs commented Nov 28, 2026

Copy link
Copy Markdown
Owner

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, the switch_to_* methods and desired_capabilities are 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), added element-methods.md and waits.md, fixed the duplicate and miscopied rows, and added tools/check_methods.py with .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

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>
@surevs
surevs merged commit b2947f3 into master Nov 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant