mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
694 B
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 |
The page to trigger the action on. |
Returns:
Promise<void>