Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chromedriver

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromedriver - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

9

lib/chromedriver.js
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();
}
}

13

package.json
{
"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 @@ ----------

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc