Skip to content

Add comprehensive WebDriver BiDi examples for Python, Ruby, and C##2631

Open
AutomatedTester wants to merge 3 commits intotrunkfrom
improve_docs
Open

Add comprehensive WebDriver BiDi examples for Python, Ruby, and C##2631
AutomatedTester wants to merge 3 commits intotrunkfrom
improve_docs

Conversation

@AutomatedTester
Copy link
Copy Markdown
Member

Add new test files for Python, Ruby, and C# covering BiDi features:

  • BrowsingContext: Create/navigate/manage windows and tabs
  • Script: Execute functions, evaluate, DOM mutations
  • Network: Intercept requests/responses, authentication
  • Input: Keyboard/mouse actions, drag-drop, events
  • LocateNodes: Find elements by CSS/XPath/selectors

This fills the gap in multi-language BiDi example coverage, enabling documentation pages to reference working examples for all supported languages.

Python added:

  • test_bidi_browsing_context.py (8 tests)
  • test_bidi_script.py (7 tests)
  • test_bidi_network.py (5 tests)
  • test_bidi_input.py (8 tests)
  • test_bidi_locate_nodes.py (8 tests)

Ruby added/expanded:

  • browsing_context_spec.rb (13 specs)
  • script_spec.rb (8 specs)
  • input_spec.rb (9 specs)
  • locate_nodes_spec.rb (8 specs)
  • network_spec.rb (expanded with 4 tests)

C# added:

  • BrowsingContextTest.cs (13 tests)
  • ScriptTest.cs (8 tests)
  • InputTest.cs (7 tests)
  • NetworkTest.cs (7 tests)

Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.

Description

Motivation and Context

Types of changes

  • Change to the site (I have double-checked the Netlify deployment, and my changes look good)
  • Code example added (and I also added the example to all translated languages)
  • Improved translation
  • Added new translation (and I also added a notice to each document missing translation)

Checklist

  • I have read the contributing document.
  • I have used hugo to render the site/docs locally and I am sure it works.

Add new test files for Python, Ruby, and C# covering BiDi features:
- BrowsingContext: Create/navigate/manage windows and tabs
- Script: Execute functions, evaluate, DOM mutations
- Network: Intercept requests/responses, authentication
- Input: Keyboard/mouse actions, drag-drop, events
- LocateNodes: Find elements by CSS/XPath/selectors

This fills the gap in multi-language BiDi example coverage, enabling
documentation pages to reference working examples for all supported
languages.

Python added:
  - test_bidi_browsing_context.py (8 tests)
  - test_bidi_script.py (7 tests)
  - test_bidi_network.py (5 tests)
  - test_bidi_input.py (8 tests)
  - test_bidi_locate_nodes.py (8 tests)

Ruby added/expanded:
  - browsing_context_spec.rb (13 specs)
  - script_spec.rb (8 specs)
  - input_spec.rb (9 specs)
  - locate_nodes_spec.rb (8 specs)
  - network_spec.rb (expanded with 4 tests)

C# added:
  - BrowsingContextTest.cs (13 tests)
  - ScriptTest.cs (8 tests)
  - InputTest.cs (7 tests)
  - NetworkTest.cs (7 tests)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit fcf23f0
🔍 Latest deploy log https://app.netlify.com/projects/selenium-dev/deploys/69fc46e1e051fd0008bfd2f6
😎 Deploy Preview https://deploy-preview-2631--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

AutomatedTester and others added 2 commits May 6, 2026 15:21
Python changes:
- Wrapped long lines to conform to 79-character limit (E501)
- Removed unused variable assignment in test_locate_nodes_by_class

Ruby changes:
- Fixed trailing whitespace on blank lines
- Removed spaces inside hash literal braces

All Python files now pass flake8 checks.
All Ruby files now pass rubocop checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- browsing_context.en.md: Replace 8 placeholder badges with Ruby/Python code references
- script.en.md: Replace 6 placeholder badges with Ruby/Python code references
- network.en.md: Replace 4 placeholder badges with Ruby/Python code references
- input.en.md: Replace 2 placeholder badges with Ruby/Python code references

This enables rendering of examples on the Netlify preview.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant