chromedriver
Advanced tools
Comparing version 2.21.2 to 2.22.0
var path = require('path'); | ||
process.env.PATH += path.delimiter + path.join(__dirname, 'chromedriver'); | ||
exports.path = process.platform === 'win32' ? path.join(__dirname, 'chromedriver', 'chromedriver.exe') : path.join(__dirname, 'chromedriver', 'chromedriver'); | ||
exports.version = '2.21'; | ||
exports.version = '2.22'; | ||
exports.start = function(args) { | ||
@@ -6,0 +6,0 @@ exports.defaultInstance = require('child_process').execFile(exports.path, args); |
{ | ||
"name": "chromedriver", | ||
"version": "2.21.2", | ||
"version": "2.22.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "chromedriver", |
@@ -59,2 +59,18 @@ ChromeDriver | ||
Running with Selenium WebDriver | ||
------------------------------- | ||
```javascript | ||
require('chromedriver'); | ||
var webdriver = require('selenium-webdriver'); | ||
var driver = new webdriver.Builder() | ||
.forBrowser('chrome') | ||
.build(); | ||
``` | ||
(Tested for selenium-webdriver version `2.48.2`) | ||
The path will be added to the process automatically, you don't need to configure it. | ||
But you can get it from `require('chromedriver').path` if you want it. | ||
Running via node | ||
@@ -61,0 +77,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
298
148
16242
9
6
4