## DropdownLayout Testkit

### Import

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

### classes
- signature: classes(_name)
- deprecated: true

### clickAtOption
- signature: clickAtOption(index)
- returns: Promise<void>
- description: Clicks on an option at a specific index

### clickAtOptionByDataHook
- signature: clickAtOptionByDataHook(dataHook)
- returns: Promise<void>
- description: Clicks on an option with a specific dataHook

### clickAtOptionWithValue
- signature: clickAtOptionWithValue(value)
- returns: Promise<void>
- description: Clicks on an option with a specific value

### hasTopArrow
- signature: hasTopArrow()
- deprecated: true

### isDown
- signature: isDown()
- deprecated: true

### isUp
- signature: isUp()
- deprecated: true

### isLinkOption
- signature: isLinkOption(position)

### isOptionADivider
- signature: isOptionADivider(position)

### isOptionExists
- signature: isOptionExists(optionText)

### isOptionHovered
- signature: isOptionHovered(index)

### isOptionSelected
- signature: isOptionSelected(index)

### isOptionHeightSmall
- signature: isOptionHeightSmall(position)
- deprecated: true

### isOptionHeightBig
- signature: isOptionHeightBig(position)
- deprecated: true

### isListItemFocused
- signature: isListItemFocused(position)

### isShown
- signature: isShown()

### mouseEnter
- signature: mouseEnter()

### mouseEnterAtOption
- signature: mouseEnterAtOption(position)

### mouseLeave
- signature: mouseLeave()

### mouseClickOutside
- signature: mouseClickOutside()
- deprecated: true

### mouseLeaveAtOption
- signature: mouseLeaveAtOption(position)

### optionAt
- signature: optionAt()
- deprecated: true

### optionByHook
- signature: optionByHook(hook)
- description: This should be a private method since the hook include internal parts ('dropdown-divider-{id}, dropdown-item-{id})') */
- deprecated: true

### optionById
- signature: optionById(optionId)
- returns: Promise<DropdownLayoutOptionUniDriver>
- description: Get Option by id

### optionContentAt
- signature: optionContentAt(position)

### optionDriver
- signature: optionDriver(option)

### options
- signature: options()
- description: Get Options drivers

### optionsContent
- signature: optionsContent()

### markedOption
- signature: markedOption()

### getSelectedOptionId
- signature: getSelectedOptionId()

### optionsLength
- signature: optionsLength()

### optionsScrollTop
- signature: optionsScrollTop()
- deprecated: true

### pressDownKey
- signature: pressDownKey()

### pressUpKey
- signature: pressUpKey()

### pressRightKey
- signature: pressRightKey()

### pressLeftKey
- signature: pressLeftKey()

### pressEnterKey
- signature: pressEnterKey()

### pressSpaceKey
- signature: pressSpaceKey()

### pressTabKey
- signature: pressTabKey()

### pressEscKey
- signature: pressEscKey()

### keyDownListItem
- signature: keyDownListItem(position, key)

### tabIndex
- signature: tabIndex()

### getListItemAttribute
- signature: getListItemAttribute(position, attribute)

### getListType
- signature: getListType(dataHook)
- description: Returns the list type prop value

### getOptionsContainerRole
- signature: getOptionsContainerRole()
