Element passes thru hidden element, page auto scroll to top

Ask general questions here.
anmol.ait
Posts: 3
Joined: Mon Mar 13, 2017 8:37 pm

Element passes thru hidden element, page auto scroll to top

Post by anmol.ait » Mon Mar 13, 2017 9:03 pm

On AnuglarJs application I am working, I need to click on a link, which passes through the hidden element (div hierarchy)
When I try to highlight that element using ranorex, page auto scrolls to top of the page, where application is having static header and searched element goes behind that header causing not able to perform any action on that( I need to click on that to do next task)

Ranorex spy screenshot attached for clear understanding of problem
Image.png
Image.png (5.81 KiB) Viewed 658 times

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

Re: Element passes thru hidden element, page auto scroll to top

Post by odklizec » Tue Mar 14, 2017 8:02 am

Hi,

Please upload a Ranorex snapshot. Screenshot is unfortunately useless. By highlight you mean what exactly? You select the given element in GUI tree structure in Spy or you select an xpath in repository?
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

anmol.ait
Posts: 3
Joined: Mon Mar 13, 2017 8:37 pm

Re: Element passes thru hidden element, page auto scroll to top

Post by anmol.ait » Tue Mar 14, 2017 3:27 pm

I cannot share the snapshot as it would have application screenshots which is against the company policy to share.

I captured the object of application using Ranorex spy then on Ranorex spy, right click on object path and highlight. There it goes to application and page scrolls to top of the page where as Item I am looking is some where in middle of page.

Hope it helps a bit to your question.

Ranorex 6.1

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Element passes thru hidden element, page auto scroll to top

Post by asdf » Wed Mar 15, 2017 3:04 pm

Hi Anmol.ait,

Have you tried to invoke a "PerformClick" on the element?
PerformClick.png
PerformClick.png (13.57 KiB) Viewed 627 times
The PerformClick should also work if the object is hidden.
Furthermore, you could try if this issue still occurs, if you turn off "EnsureVisible" for this element. Therefore, go to the properties of your element in question and set "Use Ensure Visible" to false.
EnsureVisible.png
EnsureVisible.png (2.96 KiB) Viewed 627 times
Make sure to do so for all parent folders of this element.

Hope this helps.

anmol.ait
Posts: 3
Joined: Mon Mar 13, 2017 8:37 pm

Re: Element passes thru hidden element, page auto scroll to top

Post by anmol.ait » Mon Mar 20, 2017 3:22 pm

Hi asdf

with useEnsureVisible false it worked as expected.
Thank you the solution.