Appearance
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
| Parameter | Type | Description |
|---|---|---|
ctx | Context | Context object. |
selector | string | CSS selector for the radio button group. |
value | string | Value attribute of the radio button to select. |
options? | WaitForSelectorOptions | Optional waiting parameters. |
Returns
Promise<void>
Example
ts
// Pick the large pizza size
await selectRadioButtonByValue(ctx, 'input[name="pizzaSize"]', 'large');