Skip to main content

Function: clickObjectPageButton()

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

Defined in: src/fe/object-page.ts:196

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>

Throws​

ControlError if the button is not found.

Example​

await clickObjectPageButton(page, 'Edit');