Skip to main content

click

plugin.browser.click(elementid: string, options?: BrowserOperationOptions): Promise<BrowserActionResponseData>

Clicks on a specified element on the page.

Parameters

ParameterTypeRequiredDescription
elementidstringYesThe ID of the element to click.
optionsBrowserOperationOptionsNoOptional browser operation options

Returns

Promise<BrowserActionResponseData> — A promise that resolves when the click action is complete.

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.browser.click('elementid');
console.log(result);