UNPKG

wix-style-react

Version:
34 lines (30 loc) 1.05 kB
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; import _regeneratorRuntime from "@babel/runtime/regenerator"; var textDriverFactory = /*#__PURE__*/function () { var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(component, page) { return _regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: return _context.abrupt("return", { element: function element() { return component; }, getValue: function getValue() { return page.evaluate(function (_input) { return _input.innerHTML; }, component); } }); case 1: case "end": return _context.stop(); } } }, _callee); })); return function textDriverFactory(_x, _x2) { return _ref.apply(this, arguments); }; }(); export default textDriverFactory;