The test code for webdriverIO's getting started guide
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This repository is for automatically deploying and executing the test code for WebdriverIO's getting started guide. I created this repository because I was having trouble following the getting started guide and I needed a method to demonstrate how to successfully execute the code from the guide. To accomplish this, I am using Vagrant and VirtualBox

Executing the code in this repository will:

  1. Create a new virtual machine running Ubuntu.
  2. Provision the machine with of all of the necessary software dependancies.
  3. Start Selenium Standalone Server 3.0.1 using geckoDriver for firefox
  4. Execute the test code shown in the getting started section of WebdriverIO's guide and print the results on the command line.

The code that will be executed:

var webdriverio = require('webdriverio')

var options = {
  desiredCapabilities: {
    browserName: 'firefox'

  .getTitle().then(function (title) {
    console.log('title was: ' + title)


  1. Download and install the latest versions of VirtualBox and Vagrant.

  2. Clone this repository (or download and unzip manually)

    git clone
  3. Open a new terminal or command line window and navigate to the downloaded repository

    cd /path/to/webdriverio-getting-started
  4. On the command line execute the following command:

    vagrant up

    The program execution will take several minutes as the dependancies are downloaded and installed. You will know that this was successful if the very last line printed to the console is:

    ==> default: title was: Google

    To see a demonstration of what happens when you do not use geckodriver, change directories to webdriverio-getting-started-no-gecko and review the help docs.


  1. Running Selenium with a Virtual Display
  2. Install Oracle Java 8 on Ubuntu