I have a webpage with an image. The image takes some time to load (around 1-2 seconds).
Is it possible to somehow validate that the image is loaded?
Right now the only safe option for me is to wait with Delay.Duration (5000)
Validate.Exists on the adapter always returns true. It seems to me, the reason is that the webpage itself is loaded before the image.
Ask general questions here.
3 posts • Page 1 of 1
- Support Team
- Site Admin
- Posts: 12169
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
Yes it is possible but you have also to improve the html code. If the html tag has an attribute likejohnsmith wrote:Is it possible to somehow validate that the image is loaded?
onload="this.loaded=true;"then you can use Ranorex to validate if this attribute is set to true.