Answers for "stale element reference: element is not attached to the page document"

0

stale element reference: element is not attached to the page document

try {
    WebElement date = driver.findElement(By.linkText(Utility.getSheetData(path, 7, 1, 2)));
    date.click();
}
catch(org.openqa.selenium.StaleElementReferenceException ex)
{
    WebElement date = driver.findElement(By.linkText(Utility.getSheetData(path, 7, 1, 2)));
    date.click();
}
Posted by: Guest on May-04-2022

Code answers related to "stale element reference: element is not attached to the page document"

Browse Popular Code Answers by Language