MCPcopy
hub / github.com/codeceptjs/CodeceptJS / seeDeviceIsUnlocked

Method seeDeviceIsUnlocked

lib/helper/Appium.js:718–722  ·  view source on GitHub ↗

* Check whether the device is not locked. * * ```js * I.seeDeviceIsUnlocked(); * ``` * * @return {Promise } * * Appium: support only Android

()

Source from the content-addressed store, hash-verified

716 * Appium: support only Android
717 */
718 async seeDeviceIsUnlocked() {
719 onlyForApps.call(this, supportedPlatform.android)
720 const res = await this.browser.isLocked()
721 return truth('device', 'to be locked').negate(res)
722 }
723
724 /**
725 * Check the device orientation

Callers 3

Appium_test.jsFile · 0.80
AppiumTs.types.tsFile · 0.80
Appium.types.tsFile · 0.80

Calls 2

truthFunction · 0.90
negateMethod · 0.80

Tested by

no test coverage detected