Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97778

Difference between invisibilityOf and invisibilityOfElementLocated

$
0
0

Let's say that I want to verify if the loading spinner is not visible anymore

invisibilityOf: true when elements are not visible anymore

wait_60().until(ExpectedConditions.invisibilityOf(commonDriver.findElement(By.cssSelector("div[class='glassPane']"))));

invisibilityOfElementLocated: true if the element is not displayed or the element doesn't exist or stale element

wait_60().until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("div[class='glassPane']")));

The first option worked properly, the second did not, and I find it odd


Viewing all articles
Browse latest Browse all 97778

Trending Articles



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