UNPKG

@progress/kendo-e2e

Version:

Kendo UI end-to-end test utilities.

29 lines 1.03 kB
"use strict"; /* * These functions are executed in the browser by invoking `driver.executeScript` * which converts them to strings first. * * Use only supported browser APIs when authoring them. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.hideElements = hideElements; exports.restoreElements = restoreElements; function hideElements(selectors) { for (const selector of selectors !== null && selectors !== void 0 ? selectors : []) { const el = document.querySelector(selector); if (el) { el.setAttribute('data-display', el.style.display); el.style.display = 'none'; } } } function restoreElements(selectors) { for (const selector of selectors !== null && selectors !== void 0 ? selectors : []) { const el = document.querySelector(selector); if (el) { el.style.display = el.getAttribute('data-display'); el.removeAttribute('data-display'); } } } //# sourceMappingURL=scripts.js.map