## TableActionCell Testkit

### Import

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

### getPrimaryActionButtonDriver
- signature: getPrimaryActionButtonDriver()
- returns: Promise<buttonDriverFactory>
- description: Get the driver of the primary action <Button/> from the action column

### getPrimaryActionButtonDriverByDataHook
- signature: getPrimaryActionButtonDriverByDataHook(dataHook)
- returns: Promise<buttonDriverFactory>
- description: Get the driver of a specific primary action <Button/> by dataHook (for array format)

### getPrimaryActionsCount
- signature: getPrimaryActionsCount()
- returns: Promise<number>
- description: Get the number of primary actions (for array format)

### getPrimaryActionButtonVisibility
- signature: getPrimaryActionButtonVisibility()
- returns: Promise< | >
- description: Gets primary action visibility value

### clickPrimaryActionButton
- signature: clickPrimaryActionButton()
- returns: Promise<void>
- description: Clicks the primary action button of the action column

### clickPrimaryAction
- signature: clickPrimaryAction(actionIndex)
- returns: Promise<void>
- description: Clicks a specific primary action button by index (for array format)

### clickPrimaryActionByDataHook
- signature: clickPrimaryActionByDataHook(dataHook)
- returns: Promise<void>
- description: Clicks a specific primary action button by dataHook (for array format)

### getIsPrimaryActionButtonDisabled
- signature: getIsPrimaryActionButtonDisabled()
- returns: Promise<boolean>
- description: Checks whether the primary action button is disabled

### primaryActionButtonPrefixIconExists
- signature: primaryActionButtonPrefixIconExists()
- returns: Promise<boolean>
- description: Checks whether the primary action button has an prefix icon

### primaryActionButtonSuffixIconExists
- signature: primaryActionButtonSuffixIconExists()
- returns: Promise<boolean>
- description: Checks whether the primary action button has an suffix icon

### getVisibleActionsCount
- signature: getVisibleActionsCount()
- returns: Promise<number>
- description: Get the number of the visible secondary actions

### getHiddenActionsCount
- signature: getHiddenActionsCount()
- returns: Promise<number>
- description: Get the number of hidden secondary actions (in the <PopoverMenu/>, requires it to be open)

### getVisibleActionTooltipDriver
- signature: getVisibleActionTooltipDriver(actionIndex)
- returns: Promise<tooltipDriverFactory>
- description: Gets a specific visible secondary action <Tooltip/> driver

### getVisibleActionByDataHookTooltipDriver
- signature: getVisibleActionByDataHookTooltipDriver(dataHook)
- returns: Promise<tooltipDriverFactory>
- description: Get the driver of a specific visible secondary action <Tooltip/> by its specified dataHook

### getVisibleActionButtonDriver
- signature: getVisibleActionButtonDriver(actionIndex)
- returns: Promise<buttonDriverFactory>
- description: Get the driver of a specific visible secondary action <Button/>

### getVisibleActionByDataHookButtonDriver
- signature: getVisibleActionByDataHookButtonDriver(dataHook)
- returns: Promise<buttonDriverFactory>
- description: Gets a specific visible secondary action <Button/> driver by its specified dataHook

### getHiddenActionsPopoverMenuDriver
- signature: getHiddenActionsPopoverMenuDriver()
- returns: Promise<PopoverMenuUniDriver>
- description: Gets the hidden secondary action <PopoverMenu/> driver

### clickVisibleAction
- signature: clickVisibleAction(actionIndex)
- returns: Promise<void>
- description: Clicks on a visible secondary action

### clickVisibleActionByDataHook
- signature: clickVisibleActionByDataHook(actionDataHook)
- returns: Promise<void>
- description: Clicks on a visible secondary action by its specified dataHook

### clickPopoverMenu
- signature: clickPopoverMenu()
- returns: Promise<void>
- description: Clicks on the hidden secondary actions <PopoverMenu/>

### clickHiddenAction
- signature: clickHiddenAction(actionIndex)
- returns: Promise<void>
- description: Clicks on a hidden secondary action (requires the <PopoverMenu/> to be open)

### clickHiddenActionByDataHook
- signature: clickHiddenActionByDataHook(actionDataHook)
- returns: Promise<void>
- description: Clicks hidden action by data hook

### getMoreActionsTooltipText
- signature: getMoreActionsTooltipText()
- returns: Promise<string>
- description: Gets tooltip text of more actions toggle button
