Skip to content

[🚀 Feature]: Add Python examples for W3C BiDi Log commands #2642

@ajithrao2509

Description

@ajithrao2509

Feature and motivation

Problem

The W3C BiDi Log documentation page currently contains Java and
JavaScript examples only for Console logs and JavaScript exceptions.
Python examples are completely missing.

Note: Python examples do exist on the older BiDi logging page
(selenium.dev/documentation/webdriver/bidi/logging/) but are not
referenced on the newer W3C BiDi log page
(selenium.dev/documentation/webdriver/bidi/w3c/log/).

Proposed Solution

Add Python tabs to website_and_docs/content/documentation/webdriver/bidi/w3c/log.en.md
referencing the existing test file:
examples/python/tests/bidi/test_bidi_logging.py

No new test code needed — the Python tests already exist.

Scope

  • Console logs section → test_add_console_log_handler (L7-15)
  • JavaScript exceptions section → test_add_js_exception_handler (L31-39)
  • Listen to JS Logs section → badge-code placeholder (no Python test exists yet)

I am happy to submit a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions