Skip to main content
Version: 1.x

Function: clickObjectPageButton()

clickObjectPageButton(page, buttonName, options?): Promise<void>

Clicks a button in the Object Page header actions or footer bar.

Parameters​

page​

ObjectPagePage

Page to evaluate on.

buttonName​

string

Text label of the button.

options?​

ObjectPageOptions

Optional timeout and stability settings.

Returns​

Promise<void>

Intent​

Click a named button in the Object Page header or footer toolbar.

Capability​

fe.objectPage.clickButton

Throws​

ControlError if the button is not found.

Example​

await clickObjectPageButton(page, 'Edit');