webdriverjs
Version:
A nodejs bindings implementation for selenium 2.0/webdriver
15 lines (8 loc) • 368 B
JavaScript
module.exports = function getOrientation (callback) {
if(arguments.length !== 1 || typeof callback !== 'function') {
return typeof callback === 'function' ? callback(new Error('number or type of arguments don\'t agree with setOrientation command')) : false;
}
this.orientation(function(err, res) {
callback(err,res.value);
});
};