Search timeout

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Search timeout

Post by SanMan » Thu Sep 22, 2016 6:34 am

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Search timeout

Post by odklizec » Thu Sep 22, 2016 7:47 am

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
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Re: Search timeout

Post by SanMan » Thu Sep 22, 2016 8:17 am

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?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Search timeout

Post by odklizec » Thu Sep 22, 2016 8:36 am

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? ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Re: Search timeout

Post by SanMan » Thu Sep 22, 2016 8:43 am

Thank you for your help.

Yes, I agree it is more like a feature.