"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var textDriverFactory = /*#__PURE__*/function () {
  var _ref = (0, _asyncToGenerator2.default)(function* (component, page) {
    return {
      element: () => component,
      getValue: () => page.evaluate(_input => _input.innerHTML, component)
    };
  });
  return function textDriverFactory(_x, _x2) {
    return _ref.apply(this, arguments);
  };
}();
var _default = exports.default = textDriverFactory;
//# sourceMappingURL=Text.puppeteer.driver.js.map