UNPKG

wix-style-react

Version:
24 lines (23 loc) 806 B
var buttonWithOptionsDriverFactory = function buttonWithOptionsDriverFactory(component) { return { click: function click() { return component.click(); }, getButton: function getButton() { return component.$("button"); }, getDropdown: function getDropdown() { return component.$("[data-hook=\"dropdown-layout-options\"]"); }, getDropdownItem: function getDropdownItem(index) { return component.$$("[data-hook=\"dropdown-layout-options\"] div").get(index).getText(); }, getDropdownItemsCount: function getDropdownItemsCount() { return component.$$("[data-hook=\"dropdown-layout-options\"] div").getText().count(); }, element: function element() { return component; } }; }; export default buttonWithOptionsDriverFactory;