chromedriver
Advanced tools
Comparing version 2.0.0 to 2.0.1
var path = require('path'); | ||
exports.path = process.platform === 'win32' ? path.join(__dirname, 'chromedriver', 'chromedriver.exe') : path.join(__dirname, 'chromedriver', 'chromedriver'); | ||
exports.version = '2.0'; | ||
exports.start = function() { | ||
exports.defaultInstance = require('child_process').execFile(exports.path); | ||
return exports.defaultInstance; | ||
} | ||
exports.stop = function () { | ||
if (exports.defaultInstance != null){ | ||
exports.defaultInstance.kill(); | ||
} | ||
} |
{ | ||
"name": "chromedriver", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"keywords": ["chromedriver", "selenium"], | ||
@@ -16,11 +16,6 @@ "description": "ChromeDriver for Selenium", | ||
"author": { | ||
"name": "Dan Pupius", | ||
"email": "dan@obvious.com", | ||
"url": "http://pupius.co.uk" | ||
"name": "Giovanni Bassi", | ||
"email": "giggio@giggio.net", | ||
"url": "http://www.lambda3.com.br" | ||
}, | ||
"maintainers": [ { | ||
"name": "Dan Pupius", | ||
"email": "dan@obvious.com", | ||
"web": "http://pupius.co.uk/" | ||
} ], | ||
"main": "lib/chromedriver", | ||
@@ -27,0 +22,0 @@ "bin": { |
@@ -46,16 +46,28 @@ ChromeDriver | ||
```javascript | ||
var childProcess = require('child_process') | ||
var chromedriver = require('chromedriver') | ||
var binPath = chromedriver.path | ||
var childProcess = require('child_process'); | ||
var chromedriver = require('chromedriver'); | ||
var binPath = chromedriver.path; | ||
var childArgs = [ | ||
'some argument' | ||
] | ||
]; | ||
childProcess.execFile(binPath, childArgs, function(err, stdout, stderr) { | ||
// handle results | ||
}) | ||
}); | ||
``` | ||
You can also use the start and stop methods: | ||
```javascript | ||
var chromedriver = require('chromedriver'); | ||
chromedriver.start(); | ||
//run your tests | ||
chromedriver.stop(); | ||
``` | ||
Versioning | ||
@@ -62,0 +74,0 @@ ---------- |
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
9808
182
106
3
51