ericmckean / chromedriver

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

Issue with ChromeDriver #1027

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:
Hello,

I am meeting an issue with ChromeDriver. I just moved from Windows 7 to Windows 
8.1. My ChromeDriver worked before, now, it does not work anymore.

I am on Java, here is my code:

public static void main(String [] args){
    System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
    WebDriver driver = new ChromeDriver();
}

and here is the error:

Starting ChromeDriver 2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf) on 
port 11770
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown 
error: chrome failed to start
  (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Windows NT 6.3 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.28 seconds
Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:58'
System info: host: 'Adrien-PC', ip: '192.168.1.36', os.name: 'Windows 8.1', 
os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_31'
Driver info: org.openqa.selenium.chrome.ChromeDriver

The error is on the "new ChromeDriver();".

Can anyone help me with that?
Thanks,
Adrien.

Original issue reported on code.google.com by adrienha...@steinmauerfamily.com on 4 Feb 2015 at 9:28

GoogleCodeExporter commented 9 years ago
window 7 or 8.1  make no difference.
make sure your chrome is in the path, or together with chromedriver

Original comment by andrewch...@chromium.org on 5 Feb 2015 at 12:55

GoogleCodeExporter commented 9 years ago
Should Chrome be installed?
How can I know if it is together with ChromeDriver?

Original comment by adrienha...@steinmauerfamily.com on 6 Feb 2015 at 12:25

GoogleCodeExporter commented 9 years ago
one system could  have many Chromes, and you can decide which one to run.
when ChromeDriver together with Chrome(in the same path),  ChromeDriver will 
always find Chrome to launch.
following is a good way to  determine which Chrome to run
    ChromeOptions chromeOptions = new ChromeOptions();      chromeOptions.setBinary("C:\\Chromium\\src\\out\\Release\\chrome.exe");
driver = new ChromeDriver(chromeOptions);
hope this help.

Original comment by andrewch...@chromium.org on 6 Feb 2015 at 12:39

GoogleCodeExporter commented 9 years ago
Superb!
Thank you! It works!

Original comment by adrienha...@steinmauerfamily.com on 10 Feb 2015 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by andrewch...@chromium.org on 10 Feb 2015 at 12:37

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:26