Page 1 of 1

Search timeout

Posted: Thu May 22, 2014 10:21 am
by rholdberh
Hi,
i am tryint to specify search timeout fot the element not to exist:

Code: Select all

            Duration duration = new Duration(100);
            repo.IDM.NewDocumentTab.RifghtContainer.VersionsTab.VersionRowInfo.SearchTimeout = duration;
            if(!repo.IDM.NewDocumentTab.RifghtContainer.VersionsTab.VersionRowInfo.Exists())
            {
                todo bla bla bla
            }
So logically Ranorex should look fot the lement fot 100 ms, but it still looking defaultly for 2,2 minutes. Can someone help me with this?

Re: Search timeout

Posted: Fri May 23, 2014 1:42 pm
by krstcs
You must remember that the search timeout that Ranorex will use is the ADDITIVE value of ALL objects in the path. So in your case Ranorex will take the timeouts for all four of the parent objects in your object group: IDM, NewDocumentTab, RightContainer and VersionsTab.

In order to change the whole duration of the search, you will need to change each object's search timeout.

IDM.SelfInfo.SearchTimeout
NewDocumentTab.SelfInfo.SearchTimeout
RightContainer.SelfInfo.SearchTimeout
VersionsTab.SelfInfo.SearchTimeout