Technology specific object identification, supported applications, web technologies, and 3rd party controls.
-
rholdberh
- Posts: 27
- Joined: Mon Jan 13, 2014 3:45 pm
Post
by rholdberh » Thu May 22, 2014 10:21 am
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?
-
krstcs
- Posts: 2683
- Joined: Tue Feb 07, 2012 4:14 pm
- Location: Austin, Texas, USA
Post
by krstcs » Fri May 23, 2014 1:42 pm
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
Shortcuts usually aren't...