"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _deprecationTestkitLog = _interopRequireDefault(require("../utils/deprecationTestkitLog"));
var textDriverFactory = _ref => {
  var {
    element
  } = _ref;
  (0, _deprecationTestkitLog.default)('textTestkitFactory legacy testkit is deprecated and will be removed in next major release. Please use the TextTestkit unidriver testkit instead.');
  return {
    exists: () => !!element,
    getTagName: () => element.tagName.toLowerCase(),
    getText: () => element.innerHTML,
    getSize: () => element.getAttribute('data-size'),
    getSkin: () => element.getAttribute('data-skin'),
    getWeight: () => element.getAttribute('data-weight'),
    getId: () => element.getAttribute('id'),
    isLight: () => element.getAttribute('data-light') === 'true',
    isSecondary: () => element.getAttribute('data-secondary') === 'true',
    isMasked: () => element.getAttribute('data-mask') === 'true',
    isWidows: () => element.getAttribute('data-widows') === 'true'
  };
};
var _default = exports.default = textDriverFactory;
//# sourceMappingURL=Text.driver.js.map