## ModalSelectorLayout Testkit

### Import

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

### mainLoaderDriver
- signature: mainLoaderDriver()
- returns: LoaderUniDriver
- description: Gets main loader driver.

### nextPageLoaderDriver
- signature: nextPageLoaderDriver()
- returns: LoaderUniDriver
- description: Gets next page loader driver.

### cancelButtonDriver
- signature: cancelButtonDriver()
- returns: ButtonUniDriver
- description: Gets cancel button driver.

### okButtonDriver
- signature: okButtonDriver()
- returns: ButtonUniDriver
- description: Gets ok button driver.

### searchDriver
- signature: searchDriver()
- returns: SearchUniDriver
- description: Gets search driver.

### subtitleTextDriver
- signature: subtitleTextDriver()
- returns: TextUniDriver
- description: Gets subtitle text driver.

### getTitle
- signature: getTitle()
- returns: Promise<string>
- description: Gets title text.

### clickOnClose
- signature: clickOnClose()
- returns: Promise<void>
- description: Clicks "x" button.

### showsEmptyState
- signature: showsEmptyState()
- returns: Promise<boolean>
- description: Checks weather empty state is shown.

### getEmptyState
- signature: getEmptyState()
- returns: Promise<HTMLElement>
- description: Gets empty state.

### showsNoResultsFoundState
- signature: showsNoResultsFoundState()
- returns: Promise<boolean>
- description: Checks weather no results found state is shown.

### getNoResultsFoundState
- signature: getNoResultsFoundState()
- returns: Promise<HTMLElement>
- description: Gets no results found state.

### listExists
- signature: listExists()
- returns: Promise<boolean>
- description: Checks weather the list exists.

### numberOfItemsInList
- signature: numberOfItemsInList()
- returns: Promise<number>
- description: Returns the number of items in the list.

### getSelectorDriverAt
- signature: getSelectorDriverAt(i)
- returns: SelectorUniDriver
- description: Gets the selector driver of the item at the passed index.

### scrollDown
- signature: scrollDown()
- returns: Promise<boolean>
- description: Triggers "scroll" event on the list.

### footerSelector
- signature: footerSelector()
- returns: CheckboxUniDriver
- description: Gets footer selector's driver.
