Page 1 of 1

Clicking an item in iFrame

Posted: Tue Sep 13, 2016 9:49 am
by keijo.kuronen
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

Re: Clicking an item in iFrame

Posted: Tue Sep 13, 2016 10:07 am
by odklizec
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.

Re: Clicking an item in iFrame

Posted: Wed Sep 14, 2016 4:36 am
by keijo.kuronen
Hi,

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

I am a bit stuck with this.

Regards,
Keijo

Re: Clicking an item in iFrame

Posted: Wed Sep 14, 2016 8:52 am
by odklizec
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.

Re: Clicking an item in iFrame

Posted: Wed Sep 14, 2016 4:05 pm
by krstcs
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.