How to wait an element is visible?

Ranorex Spy, Recorder, and Studio.
archibald
Posts: 4
Joined: Tue Sep 20, 2016 11:00 am

How to wait an element is visible?

Post by archibald » Tue Sep 20, 2016 12:00 pm

I found how to wait the existence of an element but I don't find how to wait the element is visible .

I want to do the same thing but i want to wait the element is visible. Unfortunately I just see Exist and Not Exist as possible values for WaitFor statement.

Do you know how to do this please?

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

Re: How to wait an element is visible?

Post by odklizec » Tue Sep 20, 2016 12:21 pm

Hi,

You can add attribute @visible='true' to the xpath of given repo element. And then you can use WaitFor Exists, which means it will wait for the element until it becomes visible. Hope this helps.
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

archibald
Posts: 4
Joined: Tue Sep 20, 2016 11:00 am

Re: How to wait an element is visible?

Post by archibald » Tue Sep 20, 2016 1:18 pm

Thank for answere

I am trying to add @visible='true' at end of repository item but it put it in red and does not accept to save the new xpath

this is a screenshot of my attempt :

https://drive.google.com/file/d/0B-Rrpf ... 0wbzQ/view

Image

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

Re: How to wait an element is visible?

Post by odklizec » Tue Sep 20, 2016 1:26 pm

Hi,

The attributes must be enclosed in square brackets. So the xpath should look like this...
../select[@visible='true']
I would suggest you to start with Ranorex xpath guide, to learn the xpath basics:
http://www.ranorex.com/support/user-gui ... xpath.html
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