Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/endor/webdriverjs-selenium-bundle
https://github.com/endor/webdriverjs-selenium-bundle
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/endor/webdriverjs-selenium-bundle
- Owner: endor
- License: mit
- Created: 2014-06-04T09:45:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-04T10:17:10.000Z (over 10 years ago)
- Last Synced: 2023-03-10T21:57:26.984Z (over 1 year ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
webdriverjs-selenium-bundle
===========================Want to use webdriverjs without needing to start the selenium-server separately? In that case, this is a bundle for you!
It includes the latest selenium standalone server, chromedriver and
phantomjs.## How to use
First install webdriverjs and this bindle with npm:
npm install webdriverjs
npm install webdriverjs-selenium-bundleThen just use it like this:
var webdriverjs = require("webdriverjs");
var wdjsSeleniumBundle = require("webdriverjs-selenium-bundle");var client = webdriverjs.remote({ desiredCapabilities: { browserName: 'phantomjs' } });
// autostop makes sure that the selenium server is stopped after
// calling end().
client.use(wdjsSeleniumBundle({autostop: true}));client
.init()
.url("https://github.com/")
.getTitle(function(err, title) {
console.log();
console.log("GITHUB TITLE: %s", title);
console.log();
})
.end();This will run webdriverjs as usual, but will start the selenium server
when init() is called.