Appearance
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
| Parameter | Type | Description |
|---|---|---|
ctx | Context | Context object. |
selector | string | CSS selector for the radio button. |
options? | WaitForSelectorOptions | Optional waiting parameters. |
Returns
Promise<void>
Example
ts
// Select express shipping
await selectRadioButton(ctx, 'input[name="shippingSpeed"][value="express"]');