ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

ChromeDriver is not working with selenium 2.45.0? #1045

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

I tried to run tests in chrome driver using below code. I am using maven.

    <dependency>
                <groupId>org.seleniumhq.selenium</groupId>
                <artifactId>selenium-java</artifactId>
                <version>2.45.0</version>
            </dependency>
            <dependency>
                <groupId>org.seleniumhq.selenium</groupId>
                <artifactId>selenium-server</artifactId>
                <version>2.45.0</version>
            </dependency>

------
    public WebDriver startChromeDriver(WebDriver driver, File file) {
        file = new File("F:\\work\\chromedriver\\chromedriver.exe");
        System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());
        driver = new ChromeDriver();
        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

        return driver;
    }

public void test(){
driver.get("http://google.com")
}
------
I am getting this error 

java.lang.NoClassDefFoundError: 
org/openqa/selenium/remote/service/DriverService$Builder
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:82)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:117)

Original issue reported on code.google.com by rajeev...@gmail.com on 2 Mar 2015 at 6:39

GoogleCodeExporter commented 9 years ago
1. what version of chromedriver you use?
2. which OS you use?
3. What version of chrome browser you use?

Original comment by gmanikp...@chromium.org on 2 Mar 2015 at 8:35

GoogleCodeExporter commented 9 years ago
1. what version of chromedriver you use?
http://chromedriver.storage.googleapis.com/index.html?path=2.14/
2.14

2. which OS you use?
Windows 8.1 pro, 64bit

3. What version of chrome browser you use?
Version 40.0.2214.115 m

BTW - chromeDriver is working with 2.44.0 selenium version not with 2.45.0. 
That is why I have posted this as an issue here. 

Much Thanks

Original comment by rajeev...@gmail.com on 3 Mar 2015 at 2:12

GoogleCodeExporter commented 9 years ago
I am not able to reproduce the issue. The problem might be in the environment 
setup. Can you please check your setup

Original comment by gmanikp...@chromium.org on 3 Mar 2015 at 10:58

GoogleCodeExporter commented 9 years ago
Try to add dependency
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-remote-driver</artifactId>
    <version>2.45.0</version>
</dependency>

Original comment by malahovs...@gmail.com on 13 Mar 2015 at 9:28