## Text Testkit

### Import

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

### getTagName
- signature: getTagName()
- returns: Promise<string>
- description: Get the root element's tagName

### getText
- signature: getText()
- returns: Promise<string>
- description: Get text content (innerHTML)

### getSize
- signature: getSize()
- returns: Promise< |  | >
- description: Get size

### getSkin
- signature: getSkin()
- returns: Promise< |  |  |  | >
- description: Get skin

### getWeight
- signature: getWeight()
- returns: Promise< |  | >
- description: Get weight

### getId
- signature: getId()
- returns: Promise<string>
- description: Get id

### isLight
- signature: isLight()
- returns: Promise<boolean>
- description: Is light

### isSecondary
- signature: isSecondary()
- returns: Promise<boolean>
- description: Is secondary

### isMasked
- signature: isMasked()
- returns: Promise<boolean>
- description: Checks if component has masking classNames

### isWidows
- signature: isWidows()
- returns: Promise<boolean>
- description: Checks if the text is using &nbsp;
