Checks for missing image files.
Description
The (little) problem with checking images is their path: Consider the following HTML fragment (from the file testme.html:
<img src="./images/one-image.jpg">
This image file ("one-image.jpg") has to be located relative to the directory containing the corresponding HTML file.
Therefore the expected absolute path of the "one-image.jpg" has to be determined from the absolute path of the html file under test.
We check for existing files using the usual Java api, but have to do some directory arithmetic to get the absolutePathToImageFile:
File f = new File( absolutePathToImageFile );
if(f.exists() && !f.isDirectory())