Search Timeout : Object Identification and Technologies

Search Timeout

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

Search Timeout

Postby omayer » Wed Aug 10, 2011 6:45 pm

How to reduce search time for the object in usercode instead of changing to the repository property

Code: Select all
       bool bttn =  repo.ErrorPopUp.ButtonOKInfo.Exists();

       if(!bttn)
       {
          Report.Success("clear");
       }



Thanks
Beginner
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: Search Timeout

Postby Support Team » Thu Aug 11, 2011 10:51 am

Hi,

You can set the timeout for the specific element like this:
Duration searchTimeout = new Duration(5); // time in ms
repo.ErrorPopUp.ButtonOKInfo.SearchTimeout = searchTimeout;


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

Re: Search Timeout

Postby omayer » Thu Aug 11, 2011 3:03 pm

Thank you Markus
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: Search Timeout

Postby omayer » Thu Aug 11, 2011 7:16 pm

Markus, Where do you insert SearchTimeout code that you were mentioned ,

bool bttn = repo.ErrorPopUp.ButtonOKInfo.Exists();
if(!bttn)
{
Report.Success("clear");
}
-Beginner
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: Search Timeout

Postby Support Team » Thu Aug 11, 2011 8:03 pm

Well, anywhere before your code, otherwise it cannot make a difference on your code. Right? :D

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


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests

cron