I want to test all the page with the screenshot. To compare this with master one. I want to take screenshot of all the pages with the hash change. Some pages have animation on in. Now I want to wait untill the animation finished and take screenshot after the icons render. Now, How to wait driver after till above the two ?

let by = By.className('sample');
driver.wait(until.elementLocated(by, 10000));
let el = driver.findElement(by);
driver.wait(until.elementIsVisible(el), 10000);

and,

element.isDisplayed(element)

0 Answers