Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed SauceClient portno

  • Loading branch information...
commit d2c9ff8c29a00c849e919cb781037e574f4b6dc0 1 parent 7722fc9
@tj tj authored
Showing with 7 additions and 2 deletions.
  1. +5 −1 examples/learnboost.js
  2. +2 −1  lib/soda/sauce.js
View
6 examples/learnboost.js
@@ -9,12 +9,16 @@ var browser = soda.createClient({
url: 'http://sirrobertborden.ca.app.learnboost.com/'
});
+browser.on('command', function(cmd, args){
+ console.log(' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', '));
+});
+
browser
.chain
.session()
.setTimeout(8000)
.open('/')
- .waitForText('Submit')
+ .waitForPageToLoad(5000)
.clickAndWait('//input[@value="Submit"]')
.clickAndWait('link=Settings')
.type('user[name][first]', 'TJ')
View
3  lib/soda/sauce.js
@@ -29,8 +29,9 @@ var Client = require('./client');
var SauceClient = exports = module.exports = function SauceClient(options) {
this.host = 'saucelabs.com';
- this.port = 80;
+ this.port = 4444;
this.url = options.url;
+ this.options = options;
this.browser = JSON.stringify(options);
};
Please sign in to comment.
Something went wrong with that request. Please try again.