Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stale #element #element #attached #page #document
ADD COMMENT
Topic
Name
3+6 =