Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,26 @@
/**
*
* Check whether the device is locked or not.
*
* <example>
:lockIt.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
*
*/
export default function isLocked () {
return this.unify(this.requestHandler.create({
path: '/session/:sessionId/appium/device/is_locked',
method: 'POST'
}))
}