I followed what was written here: WebDriver Selenium API: ElementNotFoundErrorException when Element is clearly there !
My code looks like:
Function<WebDriver, WebElement> presenceOfElementLocated(final By locator) {
return new Function<WebDriver, WebElement>() {
public WebElement apply(WebDriver driver) {
return driver.findElement(locator);
}
};
}
.......
driver.get(baseUrl);
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(presenceOfElementLocated(By.className("classname")));
findByClassAndName(driver, "x-tree3-node-text", "Name1").click();
Problem is, that is does not seem to do anything. It doesn't work and i can't even see slightest trace of waiting for webpage gui. i got the same with implicit wait through timeouts... Anyone could help?