Files
puppeteer/docs/api/puppeteer.extension.triggeraction.md

694 B

sidebar_label
sidebar_label
Extension.triggerAction

Extension.triggerAction() method

Triggers the default action of the extension for a specified page. This typically simulates a user clicking the extension's action icon in the browser toolbar, potentially opening a popup or executing an action script.

Signature

class Extension {
  abstract triggerAction(page: Page): Promise<void>;
}

Parameters

Parameter

Type

Description

page

Page

The page to trigger the action on.

Returns:

Promise<void>