Skip to content

Instantly share code, notes, and snippets.

@NickTulett
NickTulett / webdriver_sync_jenkins.js
Last active Aug 29, 2015
Augment webdriver-sync for use with Jenkins
View webdriver_sync_jenkins.js
/*
to be required by another script containing the actual webdriver scripts, plus:
var exit = require("exit");//to flush stdout for Jenkins before exiting with a zero/non-zero code
var driverType = process.argv[2] || "Firefox";
var WD = require("./webdriver_sync_jenkins.js")(driverType);
var wd = WD.wd;
var driver = WD.driver;
var $ = WD.$;