## TopBanner Testkit

### Import

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

### getContent
- signature: getContent()
- returns: Promise<string>
- description: Gets the content of top banner.

### hasDismissButton
- signature: hasDismissButton()
- returns: Promise<boolean>
- description: Checks if the dismiss button exists.

### clickDismissButton
- signature: clickDismissButton()
- returns: Promise<void>
- description: Clicks the dismiss button
