UNPKG

wix-style-react

Version:
25 lines (22 loc) 693 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var FieldWithSelectionCompositeDriverFactory = function FieldWithSelectionCompositeDriverFactory(component) { var inputWrappers = component.$('[data-hook="input-wrappers"]'); return { getLabel: function getLabel() { return component.find('label'); }, getInput: function getInput() { return inputWrappers.all(by.xpath('./div')).first(); }, getSelection: function getSelection() { return inputWrappers.all(by.xpath('./div')).last(); }, element: function element() { return component; } }; }; exports.default = FieldWithSelectionCompositeDriverFactory;