Skip to main content
Version: 1.x

Function: clickObjectPageButton()

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

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

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.

Throws

ControlError if the button is not found.

Example

await clickObjectPageButton(page, 'Edit');