Skip to content

Commit

Permalink
tbwdjs -> testingbot in README.md
Browse files Browse the repository at this point in the history
Apparently at the moment the way to import the library is `require("testingbot")`, not `require("tbwdjs")`.
  • Loading branch information
konrad-garus committed Aug 14, 2015
1 parent 14d1026 commit f4203db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A small wrapper around [WebdriverIO](http://webdriver.io), that eases testing on
The boilerplate example given by the testingbot.com node.js wizard is
reduced to

var webdriverjs = require('tbwdjs');
var webdriverjs = require('testingbot');
var client = webdriverjs.remote({
host: 'hub.testingbot.com',
desiredCapabilities: {
Expand Down Expand Up @@ -80,13 +80,13 @@ A small wrapper around [WebdriverIO](http://webdriver.io), that eases testing on
Included are convenience methods to query the TestingBot API.
Please have a look at this example to access the api only:

var tbwdjs = require('tbwdjs');
var t = tbwdjs.api({ api_key: 'key', api_secret: 'secret'});
var testingbot = require('testingbot');
var t = testingbot.api({ api_key: 'key', api_secret: 'secret'});
t.getBrowsers(function(browsers) { console.log(browsers); });

You can always access the api during tests with your client-object:

var webdriverjs = require('tbwdjs');
var webdriverjs = require('testingbot');
var client = webdriverjs.remote({
host: 'hub.testingbot.com',
desiredCapabilities: {
Expand Down

0 comments on commit f4203db

Please sign in to comment.