Hello,
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.
Thank you!
Wait for ImgTag to load
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Wait for ImgTag to load
Hi,
Regards,
Peter
Ranorex Team
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.
Regards,
Peter
Ranorex Team
Re: Wait for ImgTag to load
What I ended up doing is I captured a screenshot of a blank element and was waiting for it to go away.