Skip to main content

type

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

Types text into a specified element on the page.

Parameters

ParameterTypeRequiredDescription
elementidstringYesThe ID of the element to type into.
textstringYesThe text to type.
optionsBrowserOperationOptionsNoOptional browser operation options

Returns

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

Example

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

const result = await plugin.browser.type('elementid', 'text');
console.log(result);