setOrientation

Set the current browser orientation.

Usage

1
client.setOrientation(orientation).then(callback);

Parameters

Param Type Details
orientation String the new browser orientation (landscape/portrait)

Example

setOrientation.js
1
2
3
4
5
6
client
.setOrientation('landscape')
.getOrientation(function(err, orientation) {
console.log(orientation); // outputs: "landscape"
})
.end();

Uses