"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _deprecationTestkitLog = _interopRequireDefault(require("../utils/deprecationTestkitLog"));
var headingDriverFactory = factoryParams => {
  (0, _deprecationTestkitLog.default)('headingTestkitFactory legacy testkit is deprecated and will be removed in next major release. Please use the HeadingTestkit unidriver testkit instead.');
  var {
    element
  } = factoryParams;
  return {
    exists: () => !!element,
    getAppearance: () => element.getAttribute('data-appearance'),
    getSize: () => element.getAttribute('data-size'),
    getTagName: () => element.tagName,
    getText: () => element.innerHTML,
    isLight: () => element.getAttribute('data-light') === 'true',
    isMasked: () => element.getAttribute('data-mask') === 'true',
    getId: () => element.getAttribute('data-id')
  };
};
var _default = exports.default = headingDriverFactory;
//# sourceMappingURL=Heading.driver.js.map