Google Chrome failed to launch

4,587 views
Skip to first unread message

Chaitanya Shah

unread,
Mar 24, 2015, 10:07:14 PM3/24/15
to selenium_q...@googlegroups.com, seleniu...@googlegroups.com
Hello,

I am writing running below code:

System.setProperty("webdriver.chrome.driver","C://chromedriver.exe");
ChromeDriver dr = new ChromeDriver();

Below error message is displayed:

Invalid port. Exiting...
????? ??, ???? ?:??:?? ????????? org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35'
System info: host: 'harvinavya', ip: '192.168.1.104', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_71'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:593)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:126)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:139)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:171)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:160)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:117)
at Selenium_Basic.main(Selenium_Basic.java:12)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35'
System info: host: 'harvinavya', ip: '192.168.1.104', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_71'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:171)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)
... 7 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:?????/status] to be available after ????? ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:104)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:168)
... 9 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:79)
... 10 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(Unknown Source)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
... 11 more

Mukesh otwani

unread,
Mar 25, 2015, 2:06:22 PM3/25/15
to seleniu...@googlegroups.com, selenium_q...@googlegroups.com

chunky

unread,
Apr 4, 2015, 10:45:14 AM4/4/15
to seleniu...@googlegroups.com, selenium_q...@googlegroups.com
Hello Mukesh,
I also tried your suggested code from below link but it is not working

Chunky

CH!NN@ K

unread,
Apr 5, 2015, 11:14:17 PM4/5/15
to seleniu...@googlegroups.com
Hi Chaithanya, Try this below link. I hope it will work for you.

http://techlearn.in/content/how-launch-chrome-browser-using-selenium-webdriver

---
Thanks & Regards,
Purushotham Karimbedu,
Drupal Developer and QA Engineer,
Website for Selenium : http://techlearn.in


--
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 post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/94627477-bfc7-4faa-b24c-e9351e5c3a6b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

suru ravi

unread,
Apr 6, 2015, 9:50:30 AM4/6/15
to seleniu...@googlegroups.com

On Sat, Apr 4, 2015 at 8:15 PM, chunky <chaita...@gmail.com> wrote:

Krishnan Mahadevan

unread,
Apr 6, 2015, 10:29:11 AM4/6/15
to seleniu...@googlegroups.com
Every single response I have seen on this post seems to be assuming that the OP hasn’t included the ChromeDriver binary path. But I haven’t seen anyone even try to look at the actual stack trace being provided by the OP.

*Shrugs*

@Chaintanya
Have you checked if you are manually able to start the chromedriver binary and ensure that it works ?

You should basically seem something on the following lines [ This is from a mac ]

krmahadevan@necropolis ~ $ chromedriver
Starting ChromeDriver 2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf) on port 9515
Only local connections are allowed.


I noticed in your stack trace that you shared that there is a call to UnixProcess class. I thought that class would come into picture only when dealing with a Non Windows Box and for a Windows box it should be involving org.openqa.selenium.os.WindowsProcessGroup [ Ofcourse I could be completely wrong as well ]

Invalid port. Exiting...
????? ??, ???? ?:??:?? ????????? org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35'
System info: host: 'harvinavya', ip: '192.168.1.104', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.7.0_71'
Driver info: driver.version: ChromeDriver

I also noticed that you are using a Windows 8.1 machine. I haven’t tried working with a Windows 8.1 machine. This could have something to do with Windows 8.1 too !



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Technical Scribbings @ http://rationaleemotions.wordpress.com/



Reply all
Reply to author
Forward
0 new messages