Skip to content

Instantly share code, notes, and snippets.

@NickTulett
NickTulett / webdriver_sync_jenkins.js
Last active August 29, 2015 13:55
Augment webdriver-sync for use with Jenkins
/*
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.$;