change timout vor validation of VISIBLE

Best practices, code snippets for common functionality, examples, and guidelines.
mw-tw
Posts: 20
Joined: Tue Jan 03, 2017 11:29 am

change timout vor validation of VISIBLE

Post by mw-tw » Wed Nov 29, 2017 4:04 pm

Hi,

is there a way to change default search timeout (30 s) for a Visible-Validation of an object to a longer time?

I can't use the Exists-Method, because element exists within 30s but is not visibile for that time...

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: change timout vor validation of VISIBLE

Post by krstcs » Wed Nov 29, 2017 4:57 pm

You can use exists if you change your XPath to include "and Visible='true' ". This will force Ranorex to only find the element if it is visible, but there are some catches. Ranorex will see it as visible even if it is covered by something else, etc, so basically visible means "In the visible area of the parent frame".
Shortcuts usually aren't...