Instructor
gunjan Replied on 02/03/2019
To control the staleness of an element, try adding the explicit wait for the element or else try this:
bool staleElement = true;
while (staleElement)
{
try
{
driver.FindElement(By.XPath("")).Click();
staleElement = false;
}
catch (StaleElementReferenceException)
{
staleElement = true;
}
}
Instructor
gunjan Replied on 02/03/2019
To check if the image loaded is broken or not, try this link-
https://stackoverflow.com/questions/43389340/how-to-find-broken-images-for-an-entire-web-site-in-selenium-webdriver-using-jav
Thanks Gunjan