Skip to content

interact_with_page

Interact with the currently opened browser page. The tools sends the event specified in the `interaction` argument to the element specified by the `querySelector` argument.

Arguments

Name Type Description
tab string The ID of the tab to interact with. If not provided, the active tab will be used.
selector string An argument for HTMLElement.querySelector(). Specifies the element to interact with.
interaction string The event type. Can be one of click, keydown, or keyup.
shift_key boolean Attach shift key to interaction.
ctrl_key boolean Attach ctrl key to interaction.
meta_key boolean Attach meta key to interaction.
alt_key boolean Attach alt key to interaction.
key string Key of the interaction. Supports either special values like Enter, Esc, etc., or a single character like a, b, c, etc.

Output

Type: boolean

The result of the interaction.