UNPKG

selenium-drivers

Version:

Node.js binding for selenium browser drivers. Sets up your system environment and keeps drivers up to date for various browsers and operating systems.

12 lines (9 loc) 289 B
var path = require('path'); module.exports = { run: run }; function run(driver) { console.log('running browser driver...'); var binaryFilePath = path.join(driver.downloadPath, driver.binaryFileName); exports.defaultInstance = require('child_process').execFile(binaryFilePath); }