isLocked

Check whether the device is locked or not.

Usage

1
browser.isLocked();

Example

lockIt.js
1
2
3
4
5
6
7
it('demonstrate the lock and unlock command', function () {
browser.lock();
console.log(browser.isLocked()); // true

browser.unlock();
console.log(browser.isLocked()); // false
});

Support

Support for android