Skip to content

Commit

Permalink
feat: Add device-orientation config option
Browse files Browse the repository at this point in the history
  • Loading branch information
inspector-ambitious authored and vojtajina committed Nov 23, 2013
1 parent 18edb6a commit bf5df26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module.exports = function(config) {
- `browserName` name of the browser
- `version` version of the browser (defaults to the latest available)
- `platform` which platform ? (defaults to any)
- `deviceOrientation` portrait or landscape (mobile testing option only)

For an example project of, check out [AngularJS](https://github.com/angular/angular.js/blob/master/.travis.yml).

Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ var SauceLabsBrowser = function(id, args, sauceConnect, /* config.sauceLabs */ c

};

if (args.deviceOrientation) {
options['device-orientation'] = args.deviceOrientation;
}

url = url + '?id=' + id;

driver = wd.remote('ondemand.saucelabs.com', 80, username, accessKey);
Expand Down

0 comments on commit bf5df26

Please sign in to comment.