import { IconButtonUniDriver } from '@wix/design-system/dist/testkit/unidriver';
import { baseUniDriverFactory } from '../../../../unidriver';
export function UrlViewUniDriver(base, body) {
    const linkButton = IconButtonUniDriver(base.$('[data-hook="open-link-button"]'), body);
    return {
        ...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