Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A cross browser library for writing functional tests. Based around the page obje

Chauffeur requires a webdriver library in order to run tests in a browser. Currently support is for the following of which only one is needed.

* [webdriverio](http://webdriver.io/) [Default]
* [selenium webdriverjs](http://selenium.googlecode.com/git/docs/api/javascript/index.html)
* [WebdriverIO](http://webdriver.io/) [Default]
* [selenium webdriverjs](http://selenium.googlecode.com/git/docs/api/javascript/index.html)

# Usage

Expand Down Expand Up @@ -125,7 +125,7 @@ The examples/Github directory, following the example given by the webdriverjs pr

``` bash
$ cd Github
$ node github-with-buster.js
$ node github-with-buster.js
$ mocha github-with-jasmine.js
$ mocha github-with-mocha.js
$ mocha github-with-mocha-with-chai.js
Expand Down Expand Up @@ -194,11 +194,11 @@ The following is an example of the current supported API. This snippet is for do
this.todoList(1)
.text('book')
this.todoList(2)
.text('bluray')
.text('bluray')
this.actionBtn
.klick()
.wait('500');
this.loginForm.submit();
this.loginForm.submit();
.end(done);
});
```
Expand All @@ -222,7 +222,7 @@ The grunt task test-int runs a selenium server (via grunt-selenium-webdriver) pr
$ npm run test-int
```

or
or
``` bash
$ grunt test-int
```
Expand All @@ -244,6 +244,6 @@ $ grunt coverage
## Todo

- Provide CucumberJS examples
- <del>Provide alternative to webdriverjs.io (selenium webdriverjs)</del>
- <del>Provide alternative to WebdriverIO (selenium webdriverjs)</del>


4 changes: 2 additions & 2 deletions lib/drivers/webdriverio.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var inherits = require('util').inherits,
Driver = require('../driver'),
ERROR_MSGS = require('../errors'),
webdriver = require('webdriverjs');
webdriver = require('webdriverio');

function WebDriverIO(config) {
this._remoteDriver = webdriver.remote(config);
Expand Down Expand Up @@ -425,4 +425,4 @@ var isSuccessfull = function isSuccessfullfunction(result) {
else return result;
};

module.exports = WebDriverIO;
module.exports = WebDriverIO;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"url": "https://github.com/lawrencec/chauffeur/issues"
},
"dependencies": {
"webdriverjs": "~1.5.1",
"webdriverio": "~2.1.0",
"selenium-webdriver": "~2.42.1",
"chai": "1.9.0",
"sinon-chai": "~2.5.0",
Expand Down