wd-exec
Tiny Web Driver support selenium webdriver protocol like Phantomjs, sauceLabs
Installation
npm install wd-exec
Usage
var session = session
after init, u may get session info by
session.id
session.browser
the exact browser info, e.g.
name: 'phantomjs' version: '1.9.8' platform: 'linux-unknown-64bit'
Api
init
browser
default is none, more infohost
default is phantomjs's default host:localhost:8910
sauceLabs
if true, useondemand.saucelabs.com:80
as host, and use name and key in env:env.SAUCE_USERNAME, env.SAUCE_ACCESS_KEY
session
sauceLabs
session
exec
put request json in body
session
exit
session
License
ISC