"use strict";

exports.__esModule = true;
exports.default = void 0;
var _testUtils = require("../utils/test-utils");
var _default = _ref => {
  var {
    element
  } = _ref;
  return {
    /** fulfilled if element in the DOM */
    exists: () => !!element,
    hasClass: className => (0, _testUtils.isClassExists)(element, className),
    /** true if header background image exist */
    backgroundImageExists: () => !!element.querySelector('[data-hook="page-background-image"]'),
    /** true if gradient class name exist */
    gradientClassNameExists: () => !!element.querySelector('[data-hook="page-gradient-class-name"]'),
    /** true if title exist in DOM */
    tailExists: () => !!element.querySelector('[data-hook="page-tail"]'),
    /** return container height */
    gradientContainerHeight: () => element.querySelector('[data-hook="page-gradient-class-name"]').style.height,
    /** returns html in a string form */
    getPageHtml: () => element.innerHTML
  };
};
exports.default = _default;
//# sourceMappingURL=Page.driver.js.map