Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jun 17, 2019 15:31

Purpose

Locks the device screen for a set number of seconds, check instantly how your app behaves when the screen is locked.

Usage

 browser.perfLockDevice(sec)

Parameters

NameTypePossible ValuesDescription
sec
Integer
Time, in seconds, to lock device (default: 10)

Return Value

OK - if successful

Exceptions

None

Examples

this.Then(/^I lock device$/, function () {
    browser.perfLockDevice(3)
})