"use strict";

exports.__esModule = true;
exports.UrlViewUniDriver = UrlViewUniDriver;
var _unidriver = require("@wix/design-system/dist/testkit/unidriver");
var _unidriver2 = require("../../../../unidriver");
function UrlViewUniDriver(base, body) {
  const linkButton = (0, _unidriver.IconButtonUniDriver)(base.$('[data-hook="open-link-button"]'), body);
  return {
    ...(0, _unidriver2.baseUniDriverFactory)(base),
    getValue: () => base.text(),
    hasOpenLinkButton: () => linkButton.exists(),
    getLinkHref: () => base.$('[data-hook="open-link-button"]').attr('href'),
    clickOpenLink: () => linkButton.click()
  };
}
//# sourceMappingURL=View.uni.driver.js.map