Update CSharp code block reference in options.en.md#2612
Conversation
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
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
|
@kimtg please see the error generated by qodo. |
Code Review by Qodo
1. Wrong C# example embedded
|
| {{% /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. Malformed codeblock fragment 🐞 Bug ≡ Correctness
The new gh-codeblock reference uses #L59-60 instead of the documented #Lx-Ly format, so the generated “View on GitHub” URL does not follow the repo’s documented line-range convention. This makes the outbound link inconsistent with the project’s own gh-codeblock usage examples and may prevent expected line-range navigation behavior.
Agent Prompt
## Issue description
The new `gh-codeblock` path fragment is `#L59-60`, but the project’s style guide documents `gh-codeblock` line ranges using `#L<from>-L<to>` (e.g. `#L25-L26`). Because the shortcode builds the GitHub URL directly from the provided `path`, the nonstandard fragment is propagated to the “View on GitHub” link.
## Issue Context
The shortcode parses fragments by splitting on `-` and stripping `L`, so the snippet slicing might still work, but the outbound GitHub URL will not match the documented format used elsewhere.
## Fix Focus Areas
- website_and_docs/content/documentation/webdriver/drivers/options.en.md[415-415]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Can you please sign the CLA? |
| {{% /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. Wrong c# example embedded 🐞 Bug ≡ Correctness
The unhandledPromptBehavior CSharp tab embeds code from OptionsTest.cs, but that file only contains PageLoadStrategy tests and does not demonstrate unhandled prompt behavior. This will render an unrelated C# example for that section and mislead readers.
Agent Prompt
## Issue description
The `unhandledPromptBehavior` section’s C# tab now embeds a snippet from `examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs`, but that file does not contain any example related to unhandled prompt behavior.
## Issue Context
`OptionsTest.cs` currently only contains tests setting `chromeOptions.PageLoadStrategy`.
## Fix
Do one of the following:
1) Point `gh-codeblock` at the correct .NET example file/lines that actually demonstrate unhandled prompt behavior (if it exists), OR
2) Add a correct .NET example (e.g., setting the appropriate option/capability) to an examples file, then update the `gh-codeblock` line-range to that example, OR
3) Revert this C# tab back to `{{< badge-code >}}` until a real example exists.
## Fix Focus Areas
- website_and_docs/content/documentation/webdriver/drivers/options.en.md[414-416]
- examples/dotnet/SeleniumDocs/Drivers/OptionsTest.cs[1-56]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Code review by qodo was updated up to the latest commit 8c1372e |
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