very long time to execute the method Exists

Ranorex Studio, Spy, Recorder, and Driver.
i.matveev
Posts: 40
Joined: Thu Apr 11, 2013 1:10 pm

very long time to execute the method Exists

Post by i.matveev » Tue May 07, 2013 3:19 pm

Hello Help me please. When you call element.SelfInfo.Exists() if there is no item on the screen, it looks for about 1-2 minutes. Where can I change time for the search.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: very long time to execute the method Exists

Post by Support Team » Wed May 08, 2013 3:48 pm

Hi,

There are different Exists methods and if you use the one of the RepoItemInfo you can set the "Search Timeout" in the corresponding repository items properties tab.
I would suggest using one of the Validate.Exists() methods, because they allow you to set the "Duration/SearchTimeout" directly.

Regards,
Markus