Element not found in the cache - Selenium

0

Cześć, pomóżcie proszę bo wychodzę z siebie :D

java
private void dropdownSelectByValue(String selectXpath, String value) throws Exception{
try {
Select select = new Select(driver.findElement(By.xpath(selectXpath)));
dbg("Dropdown: " + selectXpath);
select.selectByValue(value);
dbg("Selected value: " + value);
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
} catch (NotFoundException ex){
throw new Exception("Selected value not exist (" + value + "), or Xpath is bad.\n " + ex.getMessage());
}
}


Dostaje taki komunikat : org.openqa.selenium.StaleElementReferenceException: Element not found in the cache - perhaps the page has changed since it was looked up
O co może chodzić?
0

Musisz zainicjalizować elementy strony. Jeszcze raz.

1 użytkowników online, w tym zalogowanych: 0, gości: 1