Looping while waiting for an image : Automation API

Looping while waiting for an image

Class library usage, coding and language questions.

Looping while waiting for an image

Postby Mourasman » Thu Dec 22, 2011 7:07 pm

Hey guys,

I have a situation where I need to click on a certain element until a certain screenshot is found, much like the "Validate.ContainsImage", but since the "ContainsImage" method doesn't return a value I need a workaround to "wait" for that image. Has anyone done this before?

Thanks,
Mourasman
Mourasman
 
Posts: 29
Joined: Fri Oct 21, 2011 7:09 pm

Re: Looping while waiting for an image

Postby Support Team » Thu Dec 22, 2011 7:25 pm

Hi,

You could use the TryFindSingle method to validate if the image is available. This method returns you a boolean and you could search for this element till it is found for example in a while loop.
http://www.ranorex.com/Documentation/Ra ... Single.htm

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests