Constructor
new MenuItem()
Methods
waitUntilExists(timeout[opt]) → {Promise.<boolean>}
Waits until this test object exists or until the specified timeout elapses. This method is useful for synchronizing your test with your application.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
timeout | number |
<optional> | The time (in seconds) to wait for this object to exist. By default, uses the object synchronization timeout defined in the runtime engine settings. |
Returns:
- Type
- Promise.<boolean>
exists() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
hasSubMenu() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
index() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
isChecked() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
isEnabled() → {Promise.<boolean>}
Returns:
- Type
- Promise.<boolean>
label() → {Promise.<string>}
Returns:
- Type
- Promise.<string>
subMenuCount() → {Promise.<number>}
Returns:
- Type
- Promise.<number>