OK ive gone every direction on this to no success. I cant find a property of and Image object that changes when an images is either broken or not broken. ie. Enabled always says TRUE. I can pull the URL, but if the image is broken, then i simply pull the "broken" URL.. Seems to me that checking for image rendering is a fundamental task when testing web pages.. Someone must have some experience in this area in reagards to SilkTest. Any info would help. Thank you.
I have an idea. Think this in terms of how everything happens.
You should do:
-BrowserPage.WaitForReady //it can be something else make sure page is completely loaded.
-Check HTML source file//basically now you compare ER/AR. Or just Check for the image with the X(or something).
TO get the source HTML GetPageSource()
it returns a list of string(works from 5.32 and later).
or check for return code---------
Y do I have the feeling that there is a code to check if a link is broken(on this site). I believe that the logic might be similar. You should get some kind of info from the html header. Like 505, 501, 404..911 you know( http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
Make a broken image link and check for HTML header. This is one way to do it. You can get the source of any page.
Hope this brings some fresh ideas.
[This message has been edited by GodKnows (edited 12-18-2001).]