## SegmentedToggle Testkit

### Import

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

### API

### selectChild
- signature: selectChild(hook)
- returns: Promise<void>
- description: Selects child by given number (selection begins with 1) or dataHook

### isSelected
- signature: isSelected(hook)
- returns: Promise<void>
- description: Returns true if child is selected by given number (selection begins with 1) or dataHook

### exists
- signature: exists()
- returns: Promise<boolean>
- description: Checks whether element is in the DOM

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

### getSize
- signature: getSize()
- returns: Promise< | >
- description: Returns the size applied to segmented toggle

### isDisabled
- signature: isDisabled()
- returns: Promise<boolean>
- description: returns if the segmented toggle is disabled

### isChildDisabled
- signature: isChildDisabled(hook)
- returns: Promise<boolean>
- description: Returns true if child is disabled by given number (selection begins with 1) or dataHook
