I don't really like the function names that this patch uses, but it gets the job done and scans for regular "img" tags. The assert function is "assertImageExists('label')". It scans for "title" or "alt" just like assertImage(), but can easily be modified to look for the ID attribute.
This is patched against 1.0.1beta2.
patch to add assertImageExists()
Logged In: YES
user_id=695819
Originator: NO
Hi...
If the image is in an anchor tag, the image can be clicked with SimpleTest using clickLink(). There needs to be some recognisable text in the link, but the alt text can be used.
Clicking a raw image is not usual browser behaviour unless extra JavaScript is used. Is this what you are trying to simulate?
yours, Marcus