Skip to content

Function: selectRadioButton()

ts
function selectRadioButton(
   ctx: Context, 
   selector: string, 
options?: WaitForSelectorOptions): Promise<void>;

Defined in: src/form/form.ts:195

Select a radio button by clicking it.

Parameters

ParameterTypeDescription
ctxContextContext object.
selectorstringCSS selector for the radio button.
options?WaitForSelectorOptionsOptional waiting parameters.

Returns

Promise<void>

Example

ts
// Select express shipping
await selectRadioButton(ctx, 'input[name="shippingSpeed"][value="express"]');

Matterway Assistant SDK Documentation