What is the most convenient way using Selenium WebDriver to check if an URL GET returns successfully (HTTP 200)?
In this particular case I\'m most interested in verifyin
Try this:
List allImages = driver.findElements(By.tagName("img")); for (WebElement image : allImages) { boolean loaded = ((JavaScriptExecutor) driver).executeScript( "return arguments[0].complete", image); if (!loaded) { // Your error handling here. } }