Error while running chrome on remote selenium node

I have a selenium concentrator on one of my remote machines and the other machines have selenium nodes.

from selenium.webdriver import Remote
from selenium.webdriver import DesiredCapabilities

r = Remote('http://10.10.3.66:4444/wd/hub', DesiredCapabilities.CHROME)
r.get(somewebsite)

      

10.10.3.66

is a machine that has a hub and I have a local node and a remote one.
Both are connected to a remote hub, however chrome does not work on a remote node device but does it locally.

I am getting the following exception when I run the code above (on a remote node):

selenium.common.exceptions.WebDriverException: Message: u "unknown Error: Chrome failed to start: crashed \ n (Driver information: chromedriver = 2.12.301324 (De8ab311bc9374d0ade71f7c167bad61848c7c48), platform = Linux 2.6.32-042stab065.3 x86_64_ WARNING: the server did not provide any stack information) \ nContent or timeout: 60.05 seconds \ nInline info: version: '2.43.0', version: '597b76b', time: '2014-09-09 20: 52: 14' \ nSystem information: host: 'linux-node-firefox', ip: '10 .10.3.67 ', os.name:' Linux ', os.arch:' amd64 ', os.version:' 2.6.32-042stab065.3 ' , java.version: '1.6.0_33' \ nQuestions: org.openqa.selenium.chrome.ChromeDriver "; Stacktrace:

And the following error appears in the node console:

Running ChromeDriver 2.12.301324 (de8ab311bc9374d0ade71f7c167bad61848c7c48) on port 8719 Only local connections are allowed. [0.011] [WARNING]: PAC support disabled because there is no system implementation

By the way, the same code DesiredCapabilities.FIREFOX

works with works.

+3


source to share


2 answers


Most likely you do not have a chrome driver on your computer. It can be downloaded from this link: https://code.google.com/p/selenium/wiki/ChromeDriver

Add the following code to set the chrome driver path:

Java

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

      



Python

chromedriver = "C:/.../chromedriver.exe"
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver)

      

Arrange the path according to the location on your computer.

Hope it helps ...

+1


source


  • Have you installed the chrome driver and set the PATH on the nodes?


0


source







All Articles