sdk.automation.selectradiobutton
Home > @matterway/sdk > Automation > selectRadioButton
Automation.selectRadioButton() function
Selects a radio button.
Signature:
export declare function selectRadioButton(ctx: Context, selector: string, value: string): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | |
selector | string | Selector for the radio button. |
value | string | Value of the radio button. |
Returns:
Promise<void>
Example
await setRadioButton(page, 'input[id="radio-btn"]', 'some value');