chromedriver
Advanced tools
Comparing version 2.21.0 to 2.21.1
var path = require('path'); | ||
exports.path = process.platform === 'win32' ? path.join(__dirname, 'chromedriver', 'chromedriver.exe') : path.join(__dirname, 'chromedriver', 'chromedriver'); | ||
exports.version = '2.21'; | ||
exports.start = function() { | ||
exports.defaultInstance = require('child_process').execFile(exports.path); | ||
exports.start = function(args) { | ||
exports.defaultInstance = require('child_process').execFile(exports.path, args); | ||
return exports.defaultInstance; | ||
@@ -7,0 +7,0 @@ } |
{ | ||
"name": "chromedriver", | ||
"version": "2.21.0", | ||
"version": "2.21.1", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "chromedriver", |
@@ -83,11 +83,15 @@ ChromeDriver | ||
```javascript | ||
var chromedriver = require('chromedriver'); | ||
chromedriver.start(); | ||
//run your tests | ||
args = [ | ||
// optional arguments | ||
]; | ||
chromedriver.start(args); | ||
// run your tests | ||
chromedriver.stop(); | ||
``` | ||
Note: if your tests are ran asynchronously, chromedriver.stop() will have to be | ||
executed as a callback at the end of your tests | ||
@@ -94,0 +98,0 @@ Versioning |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33556257
131