import deprecationTestkitLog from '../utils/deprecationTestkitLog';
const badgeDriverFactory = ({ element, eventTrigger }) => {
    deprecationTestkitLog('badgeTestkitFactory legacy testkit is deprecated and will be removed in next major release. Please use the BadgeTestkit unidriver testkit instead.');
    return {
        /** checks if element exists */
        exists: () => !!element,
        /** returns elements text */
        text: () => element.textContent,
        getType: () => element.getAttribute('data-type'),
        getSkin: () => element.getAttribute('data-skin'),
        getSize: () => element.getAttribute('data-size'),
        isUppercase: () => element.getAttribute('data-uppercase') === 'true',
        hasClickCursor: () => element.getAttribute('data-clickable') === 'true',
        click: () => eventTrigger.click(element),
    };
};
export default badgeDriverFactory;
//# sourceMappingURL=Badge.driver.js.map