Add Python examples for W3C BiDi network intercept commands#2639
Add Python examples for W3C BiDi network intercept commands#2639ajithrao2509 wants to merge 4 commits into
Conversation
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
Review Summary by QodoAdd Python examples for W3C BiDi network intercept commands
WalkthroughsDescription• Add 4 Python test examples for W3C BiDi network commands • Integrate Python code references into network documentation • Include badge-code placeholders for unimplemented features • Support network intercept, request handlers, and event operations Diagramflowchart LR
A["Python Test File"] -->|"4 test functions"| B["Network Commands"]
B -->|"add_intercept"| C["Add Intercept"]
B -->|"remove_intercept"| D["Remove Intercept"]
B -->|"request_handler"| E["Request Handler"]
B -->|"fail_request"| F["Fail Request"]
G["Documentation File"] -->|"references"| A
G -->|"Python tabs"| H["Commands Section"]
G -->|"Python tabs"| I["Events Section"]
File Changes1. examples/python/tests/bidi/test_network_commands.py
|
Code Review by Qodo
1.
|
Closes #2638
Thanks for contributing to the Selenium site and documentation!
Description
Adds Python test examples for the W3C BiDi Network intercept commands.
Two files changed:
examples/python/tests/bidi/test_network_commands.py— new Python test file with 4 testswebsite_and_docs/content/documentation/webdriver/bidi/w3c/network.en.md— Python tab added to each sectionMotivation and Context
The W3C BiDi Network documentation page had Java and JavaScript examples
only. Python examples were completely absent — not even a badge-code
placeholder. This PR adds Python equivalents for the commands we have
tests for, and honest badge-code placeholders for the ones we don't.
Types of changes
Checklist
@pytest.mark.driver_type("bidi")marker on every testgh-codeblockreferences use verified line numbersbadge-codeplaceholder used honestly where no test exists