## Popover Testkit

### Import

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

### click
- signature: click()
- returns: Promise<void>
- description: Clicks on the target element

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

### isTargetElementExists
- signature: isTargetElementExists()
- returns: Promise<boolean>
- description: Checks whether target element exists

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

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

### isContentElementExists
- signature: isContentElementExists()
- returns: Promise<boolean>
- description: Checks whether content element exists

### mouseEnter
- signature: mouseEnter()
- returns: Promise<void>
- description: Triggers a mouseEnter event

### mouseLeave
- signature: mouseLeave()
- returns: Promise<void>
- description: Triggers a mouseLeave event

### clickOutside
- signature: clickOutside()
- returns: Promise<void>
- description: Clicks outside the target element (triggers mouseDown and mouseUp events)

### getArrowOffset
- signature: getArrowOffset()
- returns: Promise<any>
- description: Gets the arrow offset

### getContentElementUniDriver
- signature: getContentElementUniDriver()
- description: Gets content as unidriver element
