set_switch
Set a UISwitch's state by its DebugBridge ID and verify the change by waiting for specified page or element conditions.
Instructions
Set a UISwitch by stable DebugBridge ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Debug element identifier, for example AutomationTest.toggleSwitch. | |
| isOn | Yes | Target switch state. | |
| timeoutMs | No | How long to wait for post-action page availability or target criteria. Defaults to 8000. | |
| intervalMs | No | Polling interval after changing the switch. Defaults to 300. | |
| waitAfterMs | No | Delay after setting the switch before reading the next page. Defaults to 350. | |
| waitForLabel | No | Optional exact element label to wait for after changing the switch. | |
| waitForPageID | No | Optional pageID to wait for after changing the switch. | |
| waitForElement | No | Optional element criteria to wait for after changing the switch. | |
| waitForPageIDs | No | Optional acceptable pageIDs to wait for after changing the switch. | |
| waitForElementID | No | Optional element ID to wait for after changing the switch. | |
| waitForLabelIncludes | No | Optional element label substring to wait for after changing the switch. |