Code location
Package:
py/selenium/Remote/transport:
py/selenium/webdriver/remote/
Common commands
Build:
bazel build //py/...
Testing
Run tests via bazel test //py/.... See /AGENTS.md for toolchain details.
Testing
Run tests via bazel test //py:test-{browser} or bazel test //py:test-{browser}-bidi, where {browser} is the target browser (e.g., chrome, firefox, edge). See /AGENTS.md for toolchain details.
Code conventions
Logging
Deprecation
Type hints
Type hints are used throughout; add type annotations to new code
Use union notation (|) instead of Optional:
Python version
Code must work with Python 3.10 or later. Use modern syntax features available in 3.10+.
See the Type hints section for guidance on preferred type annotation syntax (including unions).
For testing: use bazel test //py/... which employs a hermetic Python 3.10+ toolchain (see /AGENTS.md).
For ad-hoc scripts, check your Python version locally before running:
Documentation
Use Google-style docstrings: