Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const linearProgressBarDriverFactory: DriverFactory = (element: ElementFinder): LinearProgressBarDriver => {
const errorIcon = () => element.$(`[data-hook='error-icon']`);
return {
...coreLinearProgressBarDriverFactory(element),
showError: () => browser.actions().mouseMove(errorIcon()).perform()
};
};