From e63d96af8e7939cab06d1f07e79c2fdd1b6a989a Mon Sep 17 00:00:00 2001 From: christian-bromann Date: Sun, 17 Aug 2014 18:29:52 -0700 Subject: [PATCH] updated webdriverjs to webdriverio --- README.md | 14 +++++++------- lib/drivers/webdriverio.js | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d146faa..412e78b 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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); }); ``` @@ -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 ``` @@ -244,6 +244,6 @@ $ grunt coverage ## Todo - Provide CucumberJS examples -- Provide alternative to webdriverjs.io (selenium webdriverjs) +- Provide alternative to WebdriverIO (selenium webdriverjs) diff --git a/lib/drivers/webdriverio.js b/lib/drivers/webdriverio.js index c63252b..cfbadc1 100644 --- a/lib/drivers/webdriverio.js +++ b/lib/drivers/webdriverio.js @@ -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); @@ -425,4 +425,4 @@ var isSuccessfull = function isSuccessfullfunction(result) { else return result; }; -module.exports = WebDriverIO; \ No newline at end of file +module.exports = WebDriverIO; diff --git a/package.json b/package.json index 38dc121..3b39bbf 100644 --- a/package.json +++ b/package.json @@ -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",