UNPKG

@christian-bromann/webdriverio

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

34 lines (29 loc) 689 B
/** * * Check whether the device is locked or not. * * <example> :lockItAsync.js browser.lock().isLocked().then(function(isLocked) { console.log(isLocked); // true }) :lockItSync.js it('demonstrate the lock and unlock command', function () { browser.lock(); console.log(browser.isLocked()); // true browser.unlock(); console.log(browser.isLocked()); // false }); * </example> * * @type mobile * @for android * */ let isLocked = function () { return this.unify(this.requestHandler.create({ path: '/session/:sessionId/appium/device/is_locked', method: 'POST' })) } export default isLocked