"use strict";

exports.__esModule = true;
exports.default = void 0;
var textDriverFactory = _ref => {
  var {
    element
  } = _ref;
  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