Page 1 of 1

Search timeout

Posted: Thu Sep 22, 2016 6:34 am
by SanMan
When I go to repository and select some item and "Highlight Element"

=>

"Searching for Elements..." progress bar notification is shown but it never timeout's

Should it stop search after 30s (default value in use)?

EDIT:

Ranorex 6.1.0

Re: Search timeout

Posted: Thu Sep 22, 2016 7:47 am
by odklizec
Hi,

Not necessarily. If the element in question is nested in a structure of parent rooted folders/elements, the Search Timeout is in fact "Effective Timeout", which is a sum of search timeouts of all parent elements/rooted folders. Please check for example this post, which describes the Search/Effective timeout:
http://www.ranorex.com/forum/how-to-mod ... tml#p28789

Re: Search timeout

Posted: Thu Sep 22, 2016 8:17 am
by SanMan
Windows10(32b)
Ranorex 6.1.0

New solution
One recording (valid number 3 on calculator)
Build
Close calculator

Select repository item "Num3Button" and "Highlight Element"

=> "Searching for Elements..." does not stop (waited over 3 minutes...)
- This should have now stopped after 1min?

What could be the problem?

Re: Search timeout

Posted: Thu Sep 22, 2016 8:36 am
by odklizec
OK, now I see. I believe it's a "feature" for debug purposes? You see, if you run your recording (with closed calc app), it will definitely fail after 1m of searching. When you try to highlight the element in repository, the search does not expire automatically, which gives you a chance to overview the GUI and eventually make changes to the xpath? In fact, the "search for elements" dialog in repo does not have a time-limited progress bar. So I think it's not a bug but rather a feature? ;)

Re: Search timeout

Posted: Thu Sep 22, 2016 8:43 am
by SanMan
Thank you for your help.

Yes, I agree it is more like a feature.