visible='True' in XPath

Ask general questions here.
c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

visible='True' in XPath

Post by c676228 » Sat May 23, 2015 12:41 am

Hi Folks,
I don't see there is visible property in RxPath class. How come we can use visible='True' in xpath?
what exactly is the difference between using EnsureVisible and using visible='True' in xpath?

Thanks,
Betty

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

Re: visible='True' in XPath

Post by odklizec » Sat May 23, 2015 7:20 am

Hi,

Ensure visible forces the element to become visible. In other words, it tries to move the element to visible area of the screen.

Attribute "visible=true" in xpath means that the path becomes valid only if the pointed element is visible. If the element is not visible, Ranorex will fail to find the element.

Hope it 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

c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Re: visible='True' in XPath

Post by c676228 » Sun May 24, 2015 8:30 pm

Hi Pavel,

Ok. but I don't see there is not a visible property or field in RxPath class.
Where does this visible attribute come from?

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

Re: App get crashed while tap on element in iOS Instrumented app

Post by odklizec » Sun May 24, 2015 9:32 pm

Visible attribute is one of the "General" attributes, available for each type of UI element. Other two are "Enabled" and "Valid".
http://www.ranorex.com/support/user-gui ... x-spy.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