Skip to main content
Version: 0.18.0

clickSwitch

production

Click a switch with a specific label. You can also specify where the label is placed relationally.

Examples:

await aui.clickSwitch({label: 'Toggle'})
await aui.clickSwitch({label: 'Toggle', relation: {type: 'leftOf'}})
  • @param {Object} params - Object containing required label property and optional relation property.
  • @property {string} params.label - The label for the checkbox.
  • @property {Object} params.relation - Object describing the relationship between the clicked checkbox and another element.
  • @property {RelationsForConvenienceMethods} params.relation.type - The type of relation.