Skip to content

ChromeOptions NoSuchMethodError addArguments / #4804 #4839

@Volker-59

Description

@Volker-59

Hi All.

I don't see any option to reopen an closed issue, so I start this issue (for me) again. Sorry for what.

My reason for the issue:

I have the same problem.
Selenium Versin 3.6.0 on Win 2008 Srv
Chrome 2.33,
JAVA 1.6.x Develop and JAVA 1.8 Runtime

[java] Exception in thread "main" java.lang.NoSuchMethodError: org.openqa.selenium.chrome.ChromeOptions.addArguments([Ljava/lang/String;)V

and all is new recompiled....

ChromeOptions chromeOptions = new ChromeOptions();

String webdriverChromeDriver = new MonitoringHelper().getProperty("CHROMEDRIVER");
System.setProperty("webdriver.chrome.driver", webdriverChromeDriver);

chromeOptions.addArguments("no-sandbox");
chromeOptions.addArguments("start-maximized");
chromeOptions.addArguments("ignore-certificate-errors");
chromeOptions.addArguments("disable-infobars");

capability = DesiredCapabilities.chrome();
capability.setCapability(ChromeOptions.CAPABILITY, chromeOptions);

remWebDriver = new org.openqa.selenium.remote.RemoteWebDriver(new URL(hubURL), capability);

The Eclipse Helper shows me, the method exist and I have only the 3.6.0 Libs in my Classpath.

Without any chromeOptions.addArguments(StringValue); loading ChromDriver works...

2017-10-09 16:01:32.180:INFO:osjshC.ROOT:qtp700072760-17: org.openqa.selenium.remote.server.WebDriverServlet-3d51f06e: Initialising WebDriverServlet
Starting ChromeDriver 2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f) on port 22699
Only local connections are allowed.

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions