Problem with Chrome using chromedriver for Ubuntu

595 views
Skip to first unread message

Cristian Picart

unread,
Mar 8, 2014, 3:13:24 PM3/8/14
to nightw...@googlegroups.com
Hello everybody,
I am working with the chromedriver for Ubuntu 12.04 LTS, Selenium WebDriver, Chrome version 33.0.1750.146, and I configured the settings.json with:

.....  
    "test_settings" : {
    "default" : {
      "launch_url" : "http://localhost",
      "selenium_port"  : 4444,
      "selenium_host"  : "localhost",
      "silent": true,
      "firefox_profile": false,
      "chrome_driver": "chromedriver",
      "ie_driver": "",
      "screenshots" : {
        "enabled" : false,
        "path" : ""
      },
      "desiredCapabilities": {
        "browserName": "chrome",
        "javascriptEnabled": true,
        "acceptSslCerts": true
....

I am doing the testing correctly, but when I use my Chrome to navigate, I can not access in some webs that before of the nightwatch.js executation with chromedriver....it worked. Some webs are with "https" and some match with the web to test.....and appears the "Oh no" message!
I reinstalled the Chrome navigator and it continue same.
Someone has the same problem? How I can fix it?

Thank you!
Cristian Picart

Diego Mejia

unread,
Mar 27, 2014, 5:55:07 PM3/27/14
to nightw...@googlegroups.com
I've got a working setup with NightwatchJS, Chrome and Selenium. 

The chromedriver needs to be pointed to using a relative path from where you started the test. Is it in the same directory as your project?
This is my chrome driver path:
      "chrome_driver": "node_modules/selenium-standalone/.selenium/2.40.0/chromedriver",

You could use the same path if you install the selenium-standalone module using the command:
npm install selenium-standalone

Are you attached to a display? If not you need to define a display for Chrome to pop up in. Using those two lines before starting the selenium server and chrome driver should make a screen available for chrome to run inside.

Xvfb :10 -screen 0 1366x768x24 -ac

export DISPLAY=:10

Hope that helps,

Diego

Jasmine

unread,
Jun 2, 2016, 12:04:48 AM6/2/16
to NightwatchJs, diego...@shazam.com
Hi,

I'm trying to run the nightwatch.js automated UI tests on a centos OS server with google chrome installed. 

How can I go about doing so? I'm trying to use xvfb.

Thanks,
Jasmine
Reply all
Reply to author
Forward
0 new messages