## Button Testkit

### Import

- unidriver: `import { ButtonUniDriver } from '@wix/design-system/dist/testkit/unidriver';`
- vanilla: `import { ButtonTestkit } from '@wix/design-system/dist/testkit';`
- puppeteer: `import { ButtonTestkit } from '@wix/design-system/dist/testkit/puppeteer';`
- playwright: `import { ButtonTestkit } 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

### getButtonTextContent
- signature: getButtonTextContent()
- description: Gets button text

### isFocused
- signature: isFocused()
- description: Checks whether button is focused

### isButtonDisabled
- signature: isButtonDisabled()
- description: Checks whether button is disabled

### hasSkin
- signature: hasSkin(skinName)
- description: Checks whether button has a given skin

### isPrefixIconExists
- signature: isPrefixIconExists()
- returns: Promise<boolean>
- description: Checks whether button has an icon prefix

### isSuffixIconExists
- signature: isSuffixIconExists()
- description: Checks whether button has an icon suffix
