Clicking an item in iFrame

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
keijo.kuronen
Posts: 2
Joined: Tue Sep 13, 2016 8:53 am

Clicking an item in iFrame

Post by keijo.kuronen » Tue Sep 13, 2016 9:49 am

Hi,

we have a following issue while testing.
Our application in Internet Explorer 11 has 2 frames and when e.g. input field on the the "right" frame is clicked (with Ranorex) the whole frame is moved to left and the left frame goes hidden. We have tried multiple different ways to workaround this but have not succeeded yet.
Any suggestions?

Attached 2 pictures: before and after.

Regards,
Keijo
Attachments
after.PNG
after.PNG (65.91 KiB) Viewed 840 times
before.PNG
before.PNG (98.48 KiB) Viewed 840 times

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

Re: Clicking an item in iFrame

Post by odklizec » Tue Sep 13, 2016 10:07 am

Hi,

Try to set Use Ensure Visible property to False for given input element (in repository properties).

By default, Use Ensure Visible is enabled in Settings >> General tab and all new repository items have set the property to Default, which means the property is acquired from General settings. So if you don't want repo items to use Ensure Visible, uncheck this option in Settings.
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

keijo.kuronen
Posts: 2
Joined: Tue Sep 13, 2016 8:53 am

Re: Clicking an item in iFrame

Post by keijo.kuronen » Wed Sep 14, 2016 4:36 am

Hi,

thanks for your answer.
Unfortunately that did not solve the issue.

I am a bit stuck with this.

Regards,
Keijo

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

Re: Clicking an item in iFrame

Post by odklizec » Wed Sep 14, 2016 8:52 am

OK, the other workaround could be using EnsureVisible action to an element in hidden area of GUI. For example "File" menu? This should bring the "hidden" area of GUI back to visible area ;)

I don't know why clicking to input element actually moves the frame, but I still think it has something to do with EnsureVisible during the mouse move/click into GUI. Maybe it has also something to do with design of your app? It's really hard to tell without seeing your app in action.
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

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

Re: Clicking an item in iFrame

Post by krstcs » Wed Sep 14, 2016 4:05 pm

Also, if you are using iFrame elements in your page, you must explicitly include those in the RanoreXPath to the element you are trying to manipulate. Leaving these out can sometimes cause weird issues with finding child elements.
Shortcuts usually aren't...