Failed to create driver session - chrome 124.0.6367.79

474 views
Skip to first unread message

kumar

unread,
Apr 26, 2024, 8:41:45 AM4/26/24
to Selenium Users
Hello,

Today my chrome browser has got updated to Version 124.0.6367.79 (Official Build) (arm64)
then now facing the problem when I run selenium scripts ,getting the below error message

java.lang.NoSuchMethodError: 'org.openqa.selenium.manager.SeleniumManagerOutput$Result org.openqa.selenium.remote.service.DriverFinder.getPath(org.openqa.selenium.remote.service.DriverService, org.openqa.selenium.Capabilities)'

    at org.openqa.selenium.chrome.ChromeDriver.generateExecutor(ChromeDriver.java:99)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:89)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:84)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:73)
    at core.Drivers.createChromeDriver

POM:
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>9.2.2</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.19.1</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.8.0</version>
</dependency>

if anyone facing the same issue or any idea on it, please let me know.

Krishnan Mahadevan

unread,
Apr 26, 2024, 8:43:41 AM4/26/24
to seleniu...@googlegroups.com
Please remove this dependency and try again. You dont need this anymore. Selenium manager that is part of selenium will be able to take care of setting up the browser for you (something that web driver manager used to do)

<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.8.0</version>
</dependency>


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/14d0bca4-78c7-4e93-b396-6bea3b64ac90n%40googlegroups.com.

kumar

unread,
Apr 26, 2024, 11:08:11 PM4/26/24
to Selenium Users
Hi ,
I have removed webdrivermanager and tried but getting same above issues
here is my sample code

static RemoteWebDriver createChromeDriver(Boolean isHeadless){

    RemoteWebDriver driver = null;

    ChromeOptions options = new ChromeOptions();

    options.addArguments("--window-size=420,800");

    if (isHeadless) {

        options.addArguments("--headless");

    }

    driver = new ChromeDriver(options);

    logger.info("created chrome driver in driver class");

    return driver;

}


error:

ava.lang.NoSuchMethodError: 'org.openqa.selenium.manager.SeleniumManagerOutput$Result org.openqa.selenium.remote.service.DriverFinder.getPath(org.openqa.selenium.remote.service.DriverService, org.openqa.selenium.Capabilities)'

    at org.openqa.selenium.chrome.ChromeDriver.generateExecutor(ChromeDriver.java:99)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:89)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:84)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:73)
    at core.Drivers.createChromeDriver


Krishnan Mahadevan

unread,
Apr 27, 2024, 12:27:09 AM4/27/24
to seleniu...@googlegroups.com
NoSuchMethodError is basically java’s way of telling you that you have a messed up CLASSPATH.

You would need to figure out which dependency in your pom file is bringing in an older version of selenium-remote-driver.jar (this is the jar that contains the code for DriverFinder.java)

I would suggest that you spend sometime playing around with the maven dependency plugin https://maven.apache.org/plugins/maven-dependency-plugin/index.html 

This plugin gives you a lot of useful insights into what all dependencies are being resolved.

The below specific goals would be a good start.

* dependency:tree
* dependency:analyze
* dependency:analyze-report (you will find a nice html under target/site/dependency-analysis.html)



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/

kumar

unread,
Apr 27, 2024, 2:23:02 AM4/27/24
to Selenium Users
HI,
I upgraded to latest version selenium 4.2 , now its working
thanks you

Reply all
Reply to author
Forward
0 new messages