From 90f9384ab2c1dbb7d4623825b08ccb49dd9c3ba7 Mon Sep 17 00:00:00 2001 From: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com> Date: Thu, 10 Jul 2025 12:28:37 -0400 Subject: [PATCH 1/2] [py] Fix api doc generation and include BiDi Emulation docs --- py/docs/source/api.rst | 25 +------------------------ py/generate_api_module_listing.py | 3 ++- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/py/docs/source/api.rst b/py/docs/source/api.rst index 0451f6bd6e3bd..898ac449ce940 100644 --- a/py/docs/source/api.rst +++ b/py/docs/source/api.rst @@ -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 @@ -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 diff --git a/py/generate_api_module_listing.py b/py/generate_api_module_listing.py index 90408f823a86f..7776ab5672026 100644 --- a/py/generate_api_module_listing.py +++ b/py/generate_api_module_listing.py @@ -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 From 25e39bb1969e0473f9e9fdd54b8dcac140c894b2 Mon Sep 17 00:00:00 2001 From: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com> Date: Thu, 10 Jul 2025 12:52:26 -0400 Subject: [PATCH 2/2] [py] Fix equality check --- py/generate_api_module_listing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/generate_api_module_listing.py b/py/generate_api_module_listing.py index 7776ab5672026..638df7782843a 100644 --- a/py/generate_api_module_listing.py +++ b/py/generate_api_module_listing.py @@ -82,7 +82,7 @@ def find_modules(package_name): ) for module in modules: if base_module in module: - if len(module.split(".")) - len(base_module.split(".")) <= 1: + if len(module.split(".")) - len(base_module.split(".")) == 1: f.write(f" {module}\n") f.write( """