Skip to content

[py] Fix API doc generation script and include BiDi Emulation docs #16037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 1 addition & 24 deletions py/docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,10 @@ webdriver.common
:toctree: selenium_webdriver_common

selenium.webdriver.common.action_chains
selenium.webdriver.common.actions.action_builder
selenium.webdriver.common.actions.input_device
selenium.webdriver.common.actions.interaction
selenium.webdriver.common.actions.key_actions
selenium.webdriver.common.actions.key_input
selenium.webdriver.common.actions.mouse_button
selenium.webdriver.common.actions.pointer_actions
selenium.webdriver.common.actions.pointer_input
selenium.webdriver.common.actions.wheel_actions
selenium.webdriver.common.actions.wheel_input
selenium.webdriver.common.alert
selenium.webdriver.common.bidi.browser
selenium.webdriver.common.bidi.browsing_context
selenium.webdriver.common.bidi.cdp
selenium.webdriver.common.bidi.common
selenium.webdriver.common.bidi.console
selenium.webdriver.common.bidi.log
selenium.webdriver.common.bidi.network
selenium.webdriver.common.bidi.permissions
selenium.webdriver.common.bidi.script
selenium.webdriver.common.bidi.session
selenium.webdriver.common.bidi.storage
selenium.webdriver.common.bidi.webextension
selenium.webdriver.common.by
selenium.webdriver.common.desired_capabilities
selenium.webdriver.common.driver_finder
selenium.webdriver.common.fedcm.account
selenium.webdriver.common.fedcm.dialog
selenium.webdriver.common.keys
selenium.webdriver.common.log
selenium.webdriver.common.options
Expand Down Expand Up @@ -119,6 +95,7 @@ webdriver.common.bidi
selenium.webdriver.common.bidi.cdp
selenium.webdriver.common.bidi.common
selenium.webdriver.common.bidi.console
selenium.webdriver.common.bidi.emulation
selenium.webdriver.common.bidi.log
selenium.webdriver.common.bidi.network
selenium.webdriver.common.bidi.permissions
Expand Down
3 changes: 2 additions & 1 deletion py/generate_api_module_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def find_modules(package_name):
)
for module in modules:
if base_module in module:
f.write(f" {module}\n")
if len(module.split(".")) - len(base_module.split(".")) == 1:
f.write(f" {module}\n")
f.write(
"""
Indices and tables
Expand Down