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.

new secound chromedirver but can't run

See original GitHub issue

Expected Behavior -

open a new window and can get url run ok

Actual Behavior -

open a new window, but can’t start

Steps to reproduce -

ubuntu 14.04 google-chrome 49.0.2623.87 chromedriver v2.9.248304

ChromeDriver driver1 = new ChromeDriver(chromeDriverService, options);
driver1.get("https://www.stackoverflow.com");
// do something...
ChromeDriver driver2 = new ChromeDriver(chromeDriverService, options);
driver2.get("https://www.google.com");

the first driver run ok, but the secound opened a new window and throw error following:

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited normally
  (Driver info: chromedriver=2.9.248304,platform=Linux 3.13.0-79-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.02 seconds
Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'
System info: host: 'zhixiongchen-Latitude-E5440', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-79-generic', java.version: '1.7.0_40'
Driver info: org.openqa.selenium.chrome.ChromeDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:170)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:159)
    at com.qunar.fresh.EnhanceApp.main(EnhanceApp.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

I find it can’t start new session, but I don’t what to do… when the first driver closed and new the secound new, all is run ok…

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
barancevcommented, Mar 14, 2016

Then you have to report this to the chromedriver issue tracker: https://sites.google.com/a/chromium.org/chromedriver/help

0reactions
wozhapencommented, Mar 14, 2016

thank you…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome doesn't start or crashes immediately - ChromeDriver
A common cause for Chrome to crash during startup is running Chrome as root user (administrator) on Linux. While it is possible to...
Read more >
Selenium chromedriver won't launch URL if another chrome ...
I have selenium 2.53.1. System.setProperty("webdriver.chrome.driver","C:\\chromedriver.exe"); ChromeOptions options = new ChromeOptions(); ...
Read more >
Fix Chrome if it crashes or won't open - Computer
First: Try these common Chrome crash fixes · Quit Chrome and reopen it: Windows: Press Ctrl + q. Mac: Press ⌘ + q....
Read more >
Issue with multiple instances of ChromeDriver in Selenium ...
I create two instances of ChromeDriver. Each ChromeDriver starts a single instance of Chrome in a UNIQUE profile. The first Chrome window starts...
Read more >
Chrome Driver Issue while executing Selenium Tests
Had a webex with Sarthak today and we got past this issue. What we did to resolve this issue: 1. The version of...
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