I\'m using Selenium (within PHPUnit) to test my web application. I would like to test whether a certain image which is present on the page really exists. More precisely, whe
You need to use XPath. For PHPUnit and Selenium the Syntax for getting the src attribute of an image is:
$imageUrl = $this->getAttribute("//img/@src");