Skip to content

Document classic WebDriver and add a WebDriverServer alias - #16

Merged
arrufat merged 3 commits into
mainfrom
webdriver-classic
Oct 7, 2026
Merged

arrufat merged 3 commits into
mainfrom
webdriver-classic

Conversation

@arrufat

@arrufat arrufat commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

The browser now serves classic WebDriver on lightpanda serve --protocol webdriver, not only BiDi (e.g. lightpanda-io/browser a8e43777f "webdriver: add element endpoints", already in nightly). Our docs still said driver.get / find_element 404 and told Selenium users to go through driver.browsing_context / driver.script.

  • bidi.py / __init__.py docstrings and the README Selenium section now lead with plain classic Selenium (webdriver.Remote(..., options=webdriver.ChromeOptions()), driver.get, find_element), and describe BiDi as opt-in via options.web_socket_url = True.
  • WebDriverServer / AsyncWebDriverServer are new aliases of BiDiServer / AsyncBiDiServer, exported in __all__. The class name no longer describes everything the server does, and Selenium users look for "WebDriver".
  • tests/test_bidi_selenium.py adds a classic session test (navigate, find, click, back, execute_script) and an alias check.
  • Unrelated nightly drift that broke CI on any branch: _methods.py regenerated against nightly (url params now note an empty string is treated as omitted), and test_page_result_carries_status matches goto's new "Navigated. HTTP 200 OK." wording.

The browser now serves classic WebDriver (driver.get, find_element,
click, execute_script, ...) next to BiDi on `serve --protocol webdriver`,
so the docs saying those commands 404 are stale. Lead the Selenium
examples with plain classic code, add WebDriverServer and
AsyncWebDriverServer as aliases of the BiDi classes, and cover a classic
Selenium session in the tests.
@arrufat
arrufat merged commit 3835aa7 into main Oct 7, 2026
11 checks passed
@arrufat
arrufat deleted the webdriver-classic branch October 7, 2026 08:33
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