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
Instead of traversing in Java, it may be faster to call javascript only once for all images.
boolean allImgLoaded = (Boolean)((JavascriptExecutor) driver).executeScript( "return Array.prototype.slice.call(document.images).every(" + "function (img) {return img.complete && img.naturalWidth > 0;});");