snippets.highlight.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-ui Show documentation
Show all versions of driver-ui Show documentation
Testerra test automation framework - driver-ui module
function ttHighlight(element, color, timeout) {
var origOutline = element.style.outline;
ttAddStyle(element, "outline: 5px solid " + color + " !important");
if (timeout > 0) {
window.setTimeout(function () {
element.style.outline = origOutline;
}, timeout);
}
}
/**
* @see https://stackoverflow.com/questions/462537/overriding-important-style
*/
function ttAddStyle(element, css) {
element.style.cssText += css;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy