Page 1 of 1

Unable to perform Click() or Click() on a button in iFrame

Posted: Fri Oct 30, 2015 11:12 pm
by navya28
Hello Support,

Since Ranorex does not support iFrame tags on RxBrowser, I decided to use default user agent for testing some test cases which had elements in iFrame tag.
However, I am not able to performClick on a button named 'Create Account' and when I perform click, My iFrame by default scrolls up and an error message is thrown saying 'Not able to click on the button since it is outside the visible desktop.
I am attaching a screenshot below. Could you please help me with it.

Re: Unable to perform Click() or Click() on a button in iFrame

Posted: Mon Nov 02, 2015 8:54 am
by odklizec
Hi,

Have you tried to use EnsureVisible method (Add New Action >> Invoke Action >> EnsureVisible() method)? EnsureVisible is typically done by default (depending on Global Settings). But in some cases, it's good to invoke it "manually" from recording/code.

Another thing you might try is to uncheck detection if mouse clicks/moves are within visible desktop...
VisibleDesktop.png
And finally, instead of Mouse Click, you can try PerformClick (Add New Action >> Invoke Action >> PerformClick() method). Unlike Mouse Click, PerformClick does not move mouse to the target element, so it may click the element regardless its position.

Re: Unable to perform Click() or Click() on a button in iFrame

Posted: Tue Nov 03, 2015 12:15 am
by navya28
Hello Support,
I tried all the above things but none worked for me.
Is there any other way to do it
Thank you

Re: Unable to perform Click() or Click() on a button in iFrame

Posted: Thu Nov 05, 2015 2:30 pm
by Support Team
Hi navya28,

Unfortunately I was not able to reproduce this behavior on a small sample website using Mozilla Firefox in connection with the User Agent Switcher add-on.

May I ask you if we could get access to your website under test and if you could try updating Ranorex to the latest version?
Thank you.

Regards,
Markus (S)

Re: Unable to perform Click() or Click() on a button in iFrame

Posted: Thu Nov 05, 2015 8:54 pm
by navya28
Hello Support,

The website is www.vudu.com and yes, I will try upgrading the ranorex version.

Thank you

Re: Unable to perform Click() or Click() on a button in iFrame

Posted: Fri Nov 06, 2015 11:03 am
by Support Team
Hi navya,

Thank you for providing the URL.
I've tried to click some elements within the iFrame and everything worked as expected.

Please let me know when you had the chance to update Ranorex.
Thank you.

Regards,
Markus (S)