Skip to content


Cong Liu edited this page Mar 30, 2016 · 11 revisions

NOTE: some content in this wiki applies only to 0.12 and earlier versions. For official documentation on 0.13 and later, see

Since v0.6.0 chromedriver is distributed with node-webkit binaries.

From chromedriver project home page:

WebDriver is an open source tool for automated testing of webapps across many browsers. It provides capabilities for navigating to web pages, user input, JavaScript execution, and more. ChromeDriver is a standalone server which implements WebDriver's wire protocol for Chromium. It is being developed by members of the Chromium and WebDriver teams.

You can use it with tools like selenium.

The only difference of the binary files from the official one is: chromedriver2_server will search for node-webkit binaries (nw, nw.exe) in the same directory (on OSX it's the same directory with

Getting started

The following workflow uses wd to drive the tests:


  • Download chromedriver2 (see links below) and place it under the same dir that contains the node-webkit binaries (nw, nw.exe, or on OSX)
  • Download the Selenium Server Standalone jar and place it in the same dir as chromedriver2
  • Install wd in your project's node_modules/:
$ npm install wd


  • Start Selenium:
$ java -jar selenium-server-standalone-VERSION.jar
  • Drive Selenium as per wd's instructions, for example:
$ (your_project_path)/node_modules/.bin/wd shell
(wd): x = wd.remote()
(wd): x.init({ browserName: "chrome" })
(wd): x.get("")
  • At this point you should have a node-webkit window open showing Google's homepage
  • Another sample with python:
import time
from selenium import webdriver

driver = webdriver.Chrome('/home/roger/Download/node-webkit-v0.10.2-linux-x64/chromedriver')  # Optional argument, if not specified will search path.
time.sleep(5) # Let the user actually see something!
search_box = driver.find_element_by_name('q')
time.sleep(5) # Let the user actually see something!

Important Note For Ubuntu 13.x Users

As you may have found from trying to run node-webkit in later versions of Ubuntu, you will probably find this won't work due to lacking You can work around this reasonably easily.

  1. Rename nw to something else (I chose myapp-bin) - this is because ChromeDriver has hard-coded the executable to nw.
  2. Create a new executable file called nw with the instructions found in the Wiki for the hack. REMEMBER TO CREATE A SIMLINK IN THIS DIRECTORY!!!

You should find this now works in Ubuntu 13.x



Please look for it in the release notes or the same directory with the node-webkit binary on





Clone this wiki locally
You can’t perform that action at this time.