Update CSharp code block reference in options.en.md#2612
Update CSharp code block reference in options.en.md#2612kimtg wants to merge 1 commit intoSeleniumHQ:trunkfrom
Conversation
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
|
|
Review Summary by QodoAdd CSharp code block reference to options documentation
WalkthroughsDescription• Replace placeholder badge with actual CSharp code reference • Link to specific code example in dotnet SeleniumDocs repository • Maintain consistency with other language code block references Diagramflowchart LR
A["Badge placeholder"] -- "replaced with" --> B["gh-codeblock reference"]
B -- "points to" --> C["OptionsTest.cs lines 59-60"]
File Changes1. website_and_docs/content/documentation/webdriver/drivers/options.en.md
|
Code Review by Qodo
1. Empty C# code block
|
| {{% /tab %}} | ||
| {{< tab header="CSharp" >}} | ||
| {{< badge-code >}} | ||
| {{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs#L59-60">}} |
There was a problem hiding this comment.
1. Empty c# code block 🐞 Bug ✓ Correctness
options.en.md now references OptionsTest.cs#L59-60, but OptionsTest.cs ends at line 57, so gh-codeblock will slice an empty snippet and render a blank code block for the CSharp tab.
Agent Prompt
### Issue description
The C# `gh-codeblock` reference points to a line range that does not exist in the referenced file, which renders an empty code snippet.
### Issue Context
`gh-codeblock` slices the remote file content based on the `#Lx-y` fragment; if `fromLine` is beyond EOF, the snippet becomes empty.
### Fix Focus Areas
- website_and_docs/content/documentation/webdriver/drivers/options.en.md[414-416]
- examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs[1-57]
### What to change
- Update the `path=` fragment to a valid line range that exists in the target file **and** actually demonstrates `unhandledPromptBehavior` for C#.
- If there is no valid C# example yet, revert this tab back to `{{< badge-code >}}` until a suitable example is added.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
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
Checklist