## TextButton Testkit

### Import

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

### isButtonDisabled
- signature: isButtonDisabled()

### isDisabled
- signature: isDisabled()

### isFocused
- signature: isFocused()

### isSuffixIconExists
- signature: isSuffixIconExists()

### isPrefixIconExists
- signature: isPrefixIconExists()

### focus
- signature: focus()

### getHref
- signature: getHref()

### getTabIndex
- signature: getTabIndex()

### getTagName
- signature: getTagName()

### getType
- signature: getType()

### hasPrefixClass
- signature: hasPrefixClass(className)

### hasSuffixClass
- signature: hasSuffixClass(className)
