Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

Selenium int - how can I wait an element (or the entire page) is loaded

$
0
0

Hi
I am using this code to see if my element is fully loaded

driver.get(\"history.html\");
WebDriverWait wait = new WebDriverWait(driver, 30);
WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//button[@class=\\\"o-B o-BIntro\\\"]\")));
driver.stopTransaction();

With the classi driver it waits that the element is loaded, but not with NL driver

Any idea/Workaround ?
Thanks and regards
Laurent


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>