Facing issue in running chrome browser on Selenium Grid

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Facing issue in running chrome browser on Selenium Grid

Display Name

I am able to run my test cases on firefox browser on Selenium Grid, but I am having issues while running the tests on Chrome Browser, its kind of configuration issue it seems.

I am getting below error while running the tests:-


org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.20.353124  (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 3.13.0-63-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 504 milliseconds
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'


I am running my node with following command:-


export PATH=$PATH:/root/ChromeDriver
java -jar selenium-server-standalone-2.48.2.jar -port $1 -role node -hub http://localhost:4444/grid/register -timeout 1800000 -nodeConfig nodeconfig.json -Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


below is my nodeconfig.json


{
  "capabilities":
  [
    {
      "browserName": "firefox",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },
    {
      "browserName": "chrome",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    }
  ],
  "configuration":
     {
       "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
       "maxSession": 5,
       "register": true,
       "registerCycle": 5000,
       "hubPort": 4444,
      "hubHost": 127.0.0.1
    }
}


I've added the binary path also using command:-


-Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


Can somebody suggest what am I doing wrong?

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/45d74d0e-bcff-42c8-b12d-d8bdace78c0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Facing issue in running chrome browser on Selenium Grid

⇜Krishnan Mahadevan⇝
The error is not saying that it cannot find the "chromedriver" (which is the server component for chrome automation using selenium) binary.

The error is telling you that Selenium could not find the location where Chrome browser itself was installed. Please check the PATH variable and see if the location to where Chrome browser was installed is part of the PATH variable.

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/

On Wed, Oct 28, 2015 at 5:14 PM, Display Name <[hidden email]> wrote:

I am able to run my test cases on firefox browser on Selenium Grid, but I am having issues while running the tests on Chrome Browser, its kind of configuration issue it seems.

I am getting below error while running the tests:-


org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.20.353124  (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 3.13.0-63-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 504 milliseconds
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'


I am running my node with following command:-


export PATH=$PATH:/root/ChromeDriver
java -jar selenium-server-standalone-2.48.2.jar -port $1 -role node -hub http://localhost:4444/grid/register -timeout 1800000 -nodeConfig nodeconfig.json -Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


below is my nodeconfig.json


{
  "capabilities":
  [
    {
      "browserName": "firefox",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },
    {
      "browserName": "chrome",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    }
  ],
  "configuration":
     {
       "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
       "maxSession": 5,
       "register": true,
       "registerCycle": 5000,
       "hubPort": 4444,
      "hubHost": 127.0.0.1
    }
}


I've added the binary path also using command:-


-Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


Can somebody suggest what am I doing wrong?

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/45d74d0e-bcff-42c8-b12d-d8bdace78c0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLn95gF9EAT3UwsCJ1-HjoeW2_qMVFS6_WmXW6LLZqB2-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Facing issue in running chrome browser on Selenium Grid

Display Name
In reply to this post by Display Name
Thanks man, it helped! :)

On Wednesday, October 28, 2015 at 5:16:55 PM UTC+5:30, Display Name wrote:

I am able to run my test cases on firefox browser on Selenium Grid, but I am having issues while running the tests on Chrome Browser, its kind of configuration issue it seems.

I am getting below error while running the tests:-


org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.20.353124  (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 3.13.0-63-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 504 milliseconds
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'


I am running my node with following command:-


export PATH=$PATH:/root/ChromeDriver
java -jar selenium-server-standalone-2.48.2.jar -port $1 -role node -hub <a href="http://localhost:4444/grid/register" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\46sa\75D\46sntz\0751\46usg\75AFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\46sa\75D\46sntz\0751\46usg\75AFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;">http://localhost:4444/grid/register -timeout 1800000 -nodeConfig nodeconfig.json -Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


below is my nodeconfig.json


{
  "capabilities":
  [
    {
      "browserName": "firefox",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },
    {
      "browserName": "chrome",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    }
  ],
  "configuration":
     {
       "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
       "maxSession": 5,
       "register": true,
       "registerCycle": 5000,
       "hubPort": 4444,
      "hubHost": 127.0.0.1
    }
}


I've added the binary path also using command:-


-Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


Can somebody suggest what am I doing wrong?

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a3aff93c-173c-4480-a244-cf1884c49982%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Facing issue in running chrome browser on Selenium Grid

Rick Gish
We were seeing this same issue until the Chrome Browser itself was installed on the remote server.

On Wednesday, October 28, 2015 at 7:58:11 AM UTC-5, Display Name wrote:
Thanks man, it helped! :)

On Wednesday, October 28, 2015 at 5:16:55 PM UTC+5:30, Display Name wrote:

I am able to run my test cases on firefox browser on Selenium Grid, but I am having issues while running the tests on Chrome Browser, its kind of configuration issue it seems.

I am getting below error while running the tests:-


org.openqa.selenium.WebDriverException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.20.353124  (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 3.13.0-63-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 504 milliseconds
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'


I am running my node with following command:-


export PATH=$PATH:/root/ChromeDriver
java -jar selenium-server-standalone-2.48.2.jar -port $1 -role node -hub <a href="http://localhost:4444/grid/register" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A4444%2Fgrid%2Fregister\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHiH156dSkwjcK-fQ41tfSxPDC1cQ&#39;;return true;">http://localhost:4444/grid/register -timeout 1800000 -nodeConfig nodeconfig.json -Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


below is my nodeconfig.json


{
  "capabilities":
  [
    {
      "browserName": "firefox",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },
    {
      "browserName": "chrome",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    }
  ],
  "configuration":
     {
       "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
       "maxSession": 5,
       "register": true,
       "registerCycle": 5000,
       "hubPort": 4444,
      "hubHost": 127.0.0.1
    }
}


I've added the binary path also using command:-


-Dwebdriver.chrome.driver="/root/ChromeDriver/chromedriver"


Can somebody suggest what am I doing wrong?

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ba8d3553-26aa-4749-8e85-c16e603998ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.