Page 1 of 1
How to wait an element is visible?
Posted: Tue Sep 20, 2016 12:00 pm
by archibald
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?
Re: How to wait an element is visible?
Posted: Tue Sep 20, 2016 12:21 pm
by odklizec
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.
Re: How to wait an element is visible?
Posted: Tue Sep 20, 2016 1:18 pm
by archibald
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
Re: How to wait an element is visible?
Posted: Tue Sep 20, 2016 1:26 pm
by odklizec
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