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.
Unable to perform Click() or Click() on a button in iFrame
Unable to perform Click() or Click() on a button in iFrame
You do not have the required permissions to view the files attached to this post.
Re: Unable to perform Click() or Click() on a button in iFrame
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... 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.
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... 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.
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Unable to perform Click() or Click() on a button in iFrame
Hello Support,
I tried all the above things but none worked for me.
Is there any other way to do it
Thank you
I tried all the above things but none worked for me.
Is there any other way to do it
Thank you
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Unable to perform Click() or Click() on a button in iFrame
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)
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
Hello Support,
The website is www.vudu.com and yes, I will try upgrading the ranorex version.
Thank you
The website is www.vudu.com and yes, I will try upgrading the ranorex version.
Thank you
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Unable to perform Click() or Click() on a button in iFrame
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)
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)