error on invoking chrome browser

200 views
Skip to first unread message

priyanka kulkarni

unread,
Aug 4, 2018, 5:32:17 AM8/4/18
to Selenium Users
Hi

Configuration Details

Chrome browser: Version 68.0.3440.75 (Official Build) (64-bit)
windows - 10 Home single language
selenium - 3.13
chrome driver-  2.41.578737
eclipse - Version: Oxygen.3a  Release (4.7.3a)


Below code for invoking chrome browser:

package pack2;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.WebDriverWait;


public class seleniumbrowser {

public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
        System.setProperty("webdriver.chrome.driver","C:\\Users\\HP\\Desktop\\chromedriver_win32\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://google.com");
}

}


Error: Chore browser is not invoked below error is displayed

Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 47840
Only local connections are allowed.
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.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'
System info: host: 'LAPTOP-IJP5KT5N', ip: '192.168.1.6', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_141'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
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 org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:116)
at pack2.seleniumbrowser.main(seleniumbrowser.java:14)
Caused by: java.lang.IllegalStateException: The process has not exited yet therefore no result is available ...
at org.apache.commons.exec.DefaultExecuteResultHandler.getException(DefaultExecuteResultHandler.java:76)
at org.openqa.selenium.os.UnixProcess.checkForError(UnixProcess.java:171)
at org.openqa.selenium.os.CommandLine.checkForError(CommandLine.java:185)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:177)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:166)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:78)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
... 7 more


Abhijit Mone

unread,
Aug 4, 2018, 5:45:52 AM8/4/18
to seleniu...@googlegroups.com
Have your tried using https

--
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/c97fc112-f5b5-4f08-ae21-cba9992da2ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
"When the footsteps are good u should follow them"
Abhijit Mone
9890615400

priyanka kulkarni

unread,
Aug 4, 2018, 7:11:04 AM8/4/18
to seleniu...@googlegroups.com

Abhijit Mone

unread,
Aug 4, 2018, 7:26:00 AM8/4/18
to seleniu...@googlegroups.com

Abhijit Mone

unread,
Aug 4, 2018, 9:51:35 AM8/4/18
to seleniu...@googlegroups.com
did it worked on differnt browser or still getting same error ?

Shai lesh

unread,
Aug 4, 2018, 10:27:37 AM8/4/18
to Selenium Users
did it work for IE or firefox.. actually here atleast issue shold not have come .. 

priyanka kulkarni

unread,
Aug 4, 2018, 10:52:47 AM8/4/18
to seleniu...@googlegroups.com
No it is not working on any browser

--
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.

Krishnan Mahadevan

unread,
Aug 4, 2018, 11:01:29 AM8/4/18
to seleniu...@googlegroups.com

Priyanka,

 

You are not using Selenium 3.13 for sure. Your stacktrace suggests that you are still resolving to Selenium 2.53 (see below). I would suggest that you please double check your CLASSPATH and ensure that you are resolving to Selenium 3.13 and try again.

 

 

Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 47840

Only local connections are allowed.

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.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'

System info: host: 'LAPTOP-IJP5KT5N', ip: '192.168.1.6', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_141'

Driver info: driver.version: ChromeDriver

 

 

 

 

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 Scribbings @ http://rationaleemotions.wordpress.com/

priyanka kulkarni

unread,
Aug 5, 2018, 2:30:44 AM8/5/18
to seleniu...@googlegroups.com
Thanks Krishnan,

When using selenium 3.13.0 and running the code to invoke chrome i am getting below error

Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 43746
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:14.902Z'
System info: host: 'LAPTOP-IJP5KT5N', ip: '192.168.1.6', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_141'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:193)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:179)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at pack2.seleniumbrowser.main(seleniumbrowser.java:14)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:43746/status] to be available after 20003 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:188)
... 9 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:156)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
... 10 more




To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/C1701A5E-7C46-4AE0-AA19-0E0AF16A7F2E%40gmail.com.

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



--
Thanks & Regards,
Priyanka.Kulkarni

Abhijit Mone

unread,
Aug 5, 2018, 2:33:01 AM8/5/18
to seleniu...@googlegroups.com
add wait time 

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.

--
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.

--
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.



--
Thanks & Regards,
Priyanka.Kulkarni

--
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/CAMoUZ1uAzxPUkg1aKsj1W8_qr1P_ai55f2q_NStH9OfnQNFnEw%40mail.gmail.com.

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


--

priyanka kulkarni

unread,
Aug 5, 2018, 2:42:07 AM8/5/18
to seleniu...@googlegroups.com
added wait code is below




add wait time 

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.



--
Thanks & Regards,
Priyanka.Kulkarni

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.


--
"When the footsteps are good u should follow them"
Abhijit Mone
9890615400

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADydEkqCKVxKnXY%2BA_T79_xdE75iqhrFhL109TsViwKmMWK05A%40mail.gmail.com.

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

Abhijit Mone

unread,
Aug 5, 2018, 2:43:48 AM8/5/18
to seleniu...@googlegroups.com
you are also working on guru 99 ? same here, but mine is getting the browser and displaying the results

add wait time 

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.

--
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.

--
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.



--
Thanks & Regards,
Priyanka.Kulkarni

--
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.


--
"When the footsteps are good u should follow them"
Abhijit Mone
9890615400

--
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.



--
Thanks & Regards,
Priyanka.Kulkarni

--
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/CAMoUZ1sFUdCCE%2Biyj95rT%2BSPoUxup_F0XGOfXUa12if0goFk2Q%40mail.gmail.com.

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

Krishnan Mahadevan

unread,
Aug 5, 2018, 2:53:10 AM8/5/18
to seleniu...@googlegroups.com

Priyanka,

Adding wait or not wait doesn’t matter here. If you take a closer look at the exception

 

Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:43746/status] to be available after 20003 ms
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
    at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:188)
    ... 9 more

 

You would notice that the exception details seem to suggest that Selenium is having problems in getting the server up and running (Chromedriver.exe binary in your case).

 

So, lets first see if the server binary starts successfully. Can you do the following:

 

  1. Open up a command prompt and invoke the chromedriver exe. You should see an output as in (a)
  2. Now open up another command prompt and trigger a curl post [ The command would look like (b)]
  3. You should see the chrome browser open up. If it doesn’t then we know for sure that the problem lies with the chromedriver binary and we can investigate around those lines.

 

(a)     – Chromedriver exe spawn

 

02:27 $ chromedriver

Starting ChromeDriver 2.37.544337 (8c0344a12e552148c185f7d5117db1f28d6c9e85) on port 9515

Only local connections are allowed.

 

 

(b)     Curl POST command

 

curl --header "Content-Type: application/json" --request POST --data '{"desiredCapabilities":{"browserName":"chrome"}}' http://localhost:9515/session

 

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 Scribbings @ http://rationaleemotions.wordpress.com/

 

From: <seleniu...@googlegroups.com> on behalf of Abhijit Mone <mone.a...@gmail.com>
Reply-To: <seleniu...@googlegroups.com>
Date: Sunday, August 5, 2018 at 12:13 PM
To: <seleniu...@googlegroups.com>
Subject: Re: [selenium-users] Re: error on invoking chrome browser

 

you are also working on guru 99 ? same here, but mine is getting the browser and displaying the results

 

On Sun, Aug 5, 2018 at 12:12 PM priyanka kulkarni <priyank...@gmail.com> wrote:

added wait code is below

 

cid:ii_jkghb1j10_16508d1dd25a3465

 

priyanka kulkarni

unread,
Aug 5, 2018, 4:03:42 AM8/5/18
to seleniu...@googlegroups.com
Hi Krishnan,

Tried following steps mentioned below, output is in attached screenshot.

Thanks,
Priyanka



On Sun, Aug 5, 2018 at 12:22 PM, Krishnan Mahadevan <krishnan.ma...@gmail.com> wrote:

Priyanka,

Adding wait or not wait doesn’t matter here. If you take a closer look at the exception

add wait time 

 

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.


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



 

--

Thanks & Regards,
Priyanka.Kulkarni

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.


 

--

"When the footsteps are good u should follow them"
Abhijit Mone
9890615400

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.


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



 

--

Thanks & Regards,
Priyanka.Kulkarni

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.


 

--

"When the footsteps are good u should follow them"
Abhijit Mone
9890615400

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/55A25CFD-9870-4D43-B74C-01E0AF6876F8%40gmail.com.

For more options, visit https://groups.google.com/d/optout.
Chromedriver in cmd prompt.jpg

Krishnan Mahadevan

unread,
Aug 5, 2018, 4:06:17 AM8/5/18
to seleniu...@googlegroups.com

Priyanka,

You need to fix the errors in the screenshot. One error says chromedriver is not part of your PATH variable and the other error basically tells you that there’s a problem with your CURL command.

 

The CURL command was only intended to serve as a reference. The idea is, that you basically have to fire a HTTP POST command with the JSON Payload I shared using an equivalent tool (Maybe PostMan plugin ?) and resolve this.

 

So please work on getting both of them sorted out and post back the results of what happens when you actually trigger a POST command.

 

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 Scribbings @ http://rationaleemotions.wordpress.com/

 

From: <seleniu...@googlegroups.com> on behalf of priyanka kulkarni <priyank...@gmail.com>
Reply-To: <seleniu...@googlegroups.com>
Date: Sunday, August 5, 2018 at 1:33 PM
To: <seleniu...@googlegroups.com>
Subject: Re: [selenium-users] Re: error on invoking chrome browser

 

Hi Krishnan,

add wait time 

 

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.

--
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.

--
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.


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



 

--

Thanks & Regards,
Priyanka.Kulkarni

--
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.


 

--

"When the footsteps are good u should follow them"
Abhijit Mone
9890615400

--
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.


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



 

--

Thanks & Regards,
Priyanka.Kulkarni

--
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.


 

--

"When the footsteps are good u should follow them"
Abhijit Mone
9890615400

--
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.

--
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.



 

--

Thanks & Regards,
Priyanka.Kulkarni

--

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/CAMoUZ1uCVH56uO6Hfytg2gOLUGKjxX2g18f0Cu8chzmouWJuiw%40mail.gmail.com.

Abhijit Mone

unread,
Aug 5, 2018, 4:14:38 AM8/5/18
to seleniu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages