OpenText™ Functional Testing for Developers JavaScript SDK

StdWin. MenuItem

MenuItem

Constructor

A MenuItem object

Methods

exists() → {Promise.<boolean>}

Checks if the menu item exists.
Returns:
a promise that is fulfilled with an indication of whether the menu item exists or not.
Type
Promise.<boolean>

hasSubMenu() → {Promise.<boolean>}

Checks if the menu item has sub-menus.
Returns:
a promise that is fulfilled with an indication of whether the menu item has sub-menus or not.
Type
Promise.<boolean>

index() → {Promise.<number>}

Gets the index of the menu item.
Returns:
a promise that is fulfilled with the index of the menu item.
Type
Promise.<number>

isChecked() → {Promise.<boolean>}

Checks if the menu item is checked.
Returns:
a promise that is fulfilled with an indication of whether the menu item is checked or not.
Type
Promise.<boolean>

isEnabled() → {Promise.<boolean>}

Checks if the menu item is enabled.
Returns:
a promise that is fulfilled with an indication of whether the menu item is enabled or not.
Type
Promise.<boolean>

label() → {Promise.<string>}

Gets the label of the menu item.
Returns:
a promise that is fulfilled with the label of the menu item.
Type
Promise.<string>
Gets the number of sub-menus of the menu item.
Returns:
a promise that is fulfilled with the number of sub-menus of the menu item.
Type
Promise.<number>