## ToggleSwitch Testkit

### Import

- unidriver: `import { ToggleSwitchUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { ToggleSwitchTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { ToggleSwitchTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { ToggleSwitchTestkit } from '@wix/design-system/dist/testkit/playwright';`

### API

### exists
- signature: exists()
- returns: Promise<boolean>
- description: Checks whether the component found with the given data hook

### element
- signature: element()
- returns: Promise<any>
- description: Gets the component root element

### click
- signature: click()
- returns: Promise<void>
- description: Clicks on the component root element

### base
- signature: base()
- returns: UniDriver
- description: Returns UniDriver for the base element

### click
- signature: click()
- description: @ts-ignore

### isDisabled
- signature: isDisabled()

### isChecked
- signature: isChecked()

### getKnobIcon
- signature: getKnobIcon()

### hasKnobIcon
- signature: hasKnobIcon()

### getId
- signature: getId()

### getTabIndex
- signature: getTabIndex()

### getRootStyles
- signature: getRootStyles()

### getTrackStyles
- signature: getTrackStyles()

### getKnobStyles
- signature: getKnobStyles()

### getKnobIconStyles
- signature: getKnobIconStyles()

### pressEnterKey
- signature: pressEnterKey()

### getSize
- signature: getSize()
- description: Get Toggle Switch size

### getSkin
- signature: getSkin()
- description: Get Toggle Switch skin
