chromedriver
Advanced tools
Comparing version 2.3.0 to 2.6.0
@@ -14,15 +14,17 @@ 'use strict' | ||
var url = require('url') | ||
var util = require('util') | ||
var libPath = path.join(__dirname, 'lib', 'chromedriver') | ||
var downloadUrl = 'http://chromedriver.googlecode.com/files/chromedriver_' | ||
var downloadUrl = 'http://chromedriver.storage.googleapis.com/%s/chromedriver_%s.zip' | ||
var platform = process.platform | ||
if (process.platform === 'linux' && process.arch === 'x64') { | ||
downloadUrl += 'linux64' | ||
} else if (process.platform === 'linux') { | ||
downloadUrl += 'linux32' | ||
} else if (process.platform === 'darwin') { | ||
downloadUrl += 'mac32' | ||
} else if (process.platform === 'win32') { | ||
downloadUrl += 'win32' | ||
} else { | ||
if (platform === 'linux') { | ||
if (process.arch === 'x64') { | ||
platform += '64' | ||
} else { | ||
platform += '32' | ||
} | ||
} else if (platform === 'darwin') { | ||
platform = 'mac32' | ||
} else if (platform !== 'win32') { | ||
console.log('Unexpected platform or architecture:', process.platform, process.arch) | ||
@@ -32,3 +34,3 @@ process.exit(1) | ||
downloadUrl += '_' + helper.version + '.zip'; | ||
downloadUrl = util.format(downloadUrl, helper.version, platform); | ||
@@ -35,0 +37,0 @@ var fileName = downloadUrl.split('/').pop() |
var path = require('path'); | ||
exports.path = process.platform === 'win32' ? path.join(__dirname, 'chromedriver', 'chromedriver.exe') : path.join(__dirname, 'chromedriver', 'chromedriver'); | ||
exports.version = '2.3'; | ||
exports.version = '2.6'; | ||
exports.start = function() { | ||
@@ -5,0 +5,0 @@ exports.defaultInstance = require('child_process').execFile(exports.path); |
{ | ||
"name": "chromedriver", | ||
"version": "2.3.0", | ||
"version": "2.6.0", | ||
"keywords": ["chromedriver", "selenium"], | ||
@@ -5,0 +5,0 @@ "description": "ChromeDriver for Selenium", |
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
184
9802