question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: ChromeOptions arguments are converted to lower case

See original GitHub issue

What happened?

After run the attached code, I can see that the created process in Task Manager looks like below. “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” –arg1=1

What I expect is as below. “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” –Arg1=1

I can see that Selenium convert arguments to lower case.

How can we reproduce the issue?

To reproduce, please add a breakpoint in the end and debug below code.

public class Test {
    public static void main(String[] args) {
        System.setProperty("webdriver.chrome.driver", "tools/96.0.4664.45/chromedriver.exe");
        ChromeOptions options = new ChromeOptions();
        options.addArguments("--Arg1=1");
        WebDriver driver = new ChromeDriver(options);
        driver.get("https://google.com/");
    }
}

Relevant log output

NA

Operating System

Windows 10

Selenium version

3.141.59

What are the browser(s) and version(s) where you see this issue?

96.0.4664.45

What are the browser driver(s) and version(s) where you see this issue?

Chrome driver 96.0.4664.45

Are you using Selenium Grid?

No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gary-a-zhangcommented, Jan 4, 2022

Thanks for the checking. Raised https://bugs.chromium.org/p/chromedriver/issues/detail?id=3985 to ChromeDriver.

0reactions
github-actions[bot]commented, Feb 4, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium Chrome WebDriver -new-window argument forces ...
I know it shouldn't matter but for the sites I'm using it does - if parts of the URL are not capital then...
Read more >
Unable to pass Capabilities to ChromeDriver in Selenium ...
Hey Inaya, you are facing this problem because ChromeDriver(Capabilities capabilities) is deprecated now and thus you cannot directly pass ...
Read more >
Robot Framework User Guide
1.1 Introduction. Robot Framework is a Python-based, extensible keyword-driven automation framework for acceptance testing, acceptance test driven ...
Read more >
undetected-chromedriver - PyPI
ChromeOptions custom handling removed, so it is compatible with webdriver.chromium.options.ChromiumOptions . removed Chrome.get() fu and restored back to " ...
Read more >
Driving Headless Chrome with Python - GeeksforGeeks
Options(): Through attributes of this class we can send browser launch parameters. In our case it is options.headless = True which will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found