Skip to main content

sendAction

client.browser.sendAction(data: BrowserSendActionRequest): Promise<BrowserActionResult>

Sends a generic browser action.

Executes an arbitrary browser action command. Use this for actions that don't have a dedicated convenience method, or for sending complex multi-step actions.

Parameters

ParameterTypeRequiredDescription
dataBrowserSendActionRequestYesThe browser action payload describing the action to perform

Returns

Promise<BrowserActionResult> — A promise that resolves to the BrowserActionResult with the action outcome

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.browser.sendAction(/* BrowserSendActionRequest */);
console.log(result);