Repository navigation
Document classic WebDriver and add a WebDriverServer alias - #16
Merged
Merged
Conversation
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.
This was referenced Oct 8, 2026
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.
The browser now serves classic WebDriver on
lightpanda serve --protocol webdriver, not only BiDi (e.g. lightpanda-io/browsera8e43777f"webdriver: add element endpoints", already in nightly). Our docs still saiddriver.get/find_element404 and told Selenium users to go throughdriver.browsing_context/driver.script.bidi.py/__init__.pydocstrings 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 viaoptions.web_socket_url = True.WebDriverServer/AsyncWebDriverServerare new aliases ofBiDiServer/AsyncBiDiServer, exported in__all__. The class name no longer describes everything the server does, and Selenium users look for "WebDriver".tests/test_bidi_selenium.pyadds a classic session test (navigate, find, click, back,execute_script) and an alias check._methods.pyregenerated against nightly (urlparams now note an empty string is treated as omitted), andtest_page_result_carries_statusmatchesgoto's new "Navigated. HTTP 200 OK." wording.