Skip to content

Conversation

@rpallavisharma
Copy link
Member

@rpallavisharma rpallavisharma commented Dec 19, 2025

User description

…page in w3c section

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.

added the missing tabs for Python and CSharp for BrowsingContext doc

Description

added the missing tabs for Python and CSharp for BrowsingContext doc

Motivation and Context

tabs were missing. added those to provide placeholder to add code samples.

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.

PR Type

Documentation


Description

  • Added Python and CSharp tabs to BrowsingContext documentation

  • Tabs include placeholder badges for future code examples

  • Changes applied across all language versions

  • Maintains consistency with existing Java and Ruby tabs


Diagram Walkthrough

flowchart LR
  A["BrowsingContext Docs"] -->|Add Python tabs| B["Python placeholders"]
  A -->|Add CSharp tabs| C["CSharp placeholders"]
  B --> D["Ready for code samples"]
  C --> D
Loading

File Walkthrough

Relevant files
Documentation
browsing_context.en.md
Add Python and CSharp tabs to English documentation           

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.en.md

  • Added 24 Python tab sections with badge-code placeholders
  • Added 24 CSharp tab sections with badge-code placeholders
  • Tabs inserted consistently after Java examples and before Ruby
    examples
  • Provides structure for future code sample additions
+180/-0 
browsing_context.ja.md
Add Python and CSharp tabs to Japanese documentation         

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.ja.md

  • Added 24 Python tab sections with badge-code placeholders
  • Added 24 CSharp tab sections with badge-code placeholders
  • Tabs inserted consistently after Java examples and before Ruby
    examples
  • Provides structure for future code sample additions
+180/-0 
browsing_context.pt-br.md
Add Python and CSharp tabs to Portuguese documentation     

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.pt-br.md

  • Added 24 Python tab sections with badge-code placeholders
  • Added 24 CSharp tab sections with badge-code placeholders
  • Tabs inserted consistently after Java examples and before Ruby
    examples
  • Provides structure for future code sample additions
+180/-0 
browsing_context.zh-cn.md
Add Python and CSharp tabs to Chinese documentation           

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.zh-cn.md

  • Added 24 Python tab sections with badge-code placeholders
  • Added 24 CSharp tab sections with badge-code placeholders
  • Tabs inserted consistently after Java examples and before Ruby
    examples
  • Provides structure for future code sample additions
+180/-0 

@qodo-code-review
Copy link
Contributor

PR Compliance Guide 🔍

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
  • Create ticket/issue
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
🟢
Generic: Comprehensive Audit Trails

Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Meaningful Naming and Self-Documenting Code

Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Robust Error Handling and Edge Case Management

Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Error Handling

Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Logging Practices

Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Security-First Input Validation and Data Handling

Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

@rpallavisharma rpallavisharma self-assigned this Dec 19, 2025
@qodo-code-review
Copy link
Contributor

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
High-level
Add code examples with placeholders

The PR adds numerous empty placeholders for code examples, which offers no
immediate user value and clutters the documentation. It would be better to add
new language tabs only when the corresponding code examples are ready to be
included.

Examples:

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.en.md [22-27]
{{< tab header="Python" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
{{< /tab >}}
website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.ja.md [28-33]
{{< tab header="Python" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
{{< badge-code >}}
{{< /tab >}}

Solution Walkthrough:

Before:

{{< tabpane text=true >}}
  {{< tab header="Java" >}}
    {{< badge-version version="4.8" >}}
    {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L44-L47" >}}
  {{< /tab >}}
  {{< tab header="Python" >}}
    {{< badge-code >}}
  {{< /tab >}}
  {{< tab header="CSharp" >}}
    {{< badge-code >}}
  {{< /tab >}}
  {{< tab header="Ruby" >}}
    {{< badge-code >}}
  {{< /tab >}}
...

After:

{{< tabpane text=true >}}
  {{< tab header="Java" >}}
    {{< badge-version version="4.8" >}}
    {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextTest.java#L44-L47" >}}
  {{< /tab >}}
  {{< tab header="Python" >}}
    {{< badge-version version="4.X" >}}
    {{< gh-codeblock path="/examples/python/src/test/..." >}}
  {{< /tab >}}
  {{< tab header="CSharp" >}}
    {{< badge-version version="4.X" >}}
    {{< gh-codeblock path="/examples/csharp/src/test/..." >}}
  {{< /tab >}}
  {{< tab header="Ruby" >}}
    ...
  {{< /tab >}}
...
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies that the PR only adds empty placeholders and raises a valid high-level concern about documentation quality and user value, proposing a better contribution strategy.

Low
General
Fix inconsistent language tab order

Reorder the language tabs to maintain a consistent sequence (Java, Python,
CSharp, Ruby). Move the Python and CSharp tabs to appear before the Ruby tab.

website_and_docs/content/documentation/webdriver/bidi/w3c/browsing_context.zh-cn.md [620-631]

 {{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/bidirectional/webdriver_bidi/BrowsingContextInspectorTest.java#L54-L63" >}}
-{{< /tab >}}
-{{< tab header="Ruby" >}}
-{{< badge-code >}}
 {{< /tab >}}
 {{< tab header="Python" >}}
 {{< badge-code >}}
 {{< /tab >}}
 {{< tab header="CSharp" >}}
 {{< badge-code >}}
 {{< /tab >}}
+{{< tab header="Ruby" >}}
+{{< badge-code >}}
+{{< /tab >}}
 {{< tab header="JavaScript" >}}

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 5

__

Why: The suggestion correctly identifies an inconsistency in the language tab order and proposes a fix to align it with the rest of the document, which improves documentation consistency.

Low
  • More

@netlify
Copy link

netlify bot commented Dec 19, 2025

Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit 160e227
🔍 Latest deploy log https://app.netlify.com/projects/selenium-dev/deploys/69455675eda0fa000862b5ef
😎 Deploy Preview https://deploy-preview-2557--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@rpallavisharma rpallavisharma requested a review from a team December 19, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants