seleniumhq.github.io icon indicating copy to clipboard operation
seleniumhq.github.io copied to clipboard

[🐛 Bug]: Documentation > WebDriver > Drivers > Options > v4.0 -- code examples differ across programming languages

Open zipperer opened this issue 1 year ago • 1 comments

What happened?

This is a minor issue.

The code examples in these sections:

  • https://www.selenium.dev/documentation/webdriver/drivers/options/#browsername
  • https://www.selenium.dev/documentation/webdriver/drivers/options/#normal-default

differ across programming languages.

For example

  1. in the browsername section, the Java example differs from the Python and Ruby examples. The Java example creates an options object and inspects the browser name attribute, as the section header suggests. The Python and Ruby examples only create the options object.

20241006-selenium-website-codeblock-java-get-options-instance-attribute 20241006-selenium-website-codeblock-python-make-options-instance-and-do-not-get-attribute

  1. in the pageLoadStrategy section, some examples set options and make a driver, while other examples do that and also get a page and quit.

What browsers and operating systems are you seeing the problem on?

Browser: Brave version 1.69.153 OS: MacOS version 12.7.6

zipperer avatar Oct 06 '24 16:10 zipperer

@zipperer, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] avatar Oct 06 '24 16:10 github-actions[bot]

This issue can be closed now. PR #2010 fixes the issue.

Delta456 avatar Nov 14 '24 07:11 Delta456