Skip to content

Function: selectRadioButtonByValue()

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

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

Select a radio button that matches a specific value.

Parameters

ParameterTypeDescription
ctxContextContext object.
selectorstringCSS selector for the radio button group.
valuestringValue attribute of the radio button to select.
options?WaitForSelectorOptionsOptional waiting parameters.

Returns

Promise<void>

Example

ts
// Pick the large pizza size
await selectRadioButtonByValue(ctx, 'input[name="pizzaSize"]', 'large');

Matterway Assistant SDK Documentation