Hi,
I've been using Ranorex for webtesting, Up to now only desktop browsers.
Now I want to try the mobile part, so I recorded a small test (user login).
When I run the test, it will have no problem finding the login button on the website,
but the problem is: after the click, a pop up(iFrame) will open, with some text boxes like username, password, ...
And these objects won't be recognized.
Any ideas or tips I can try when testing iFrames?
I'm using genymotion as emulator.
I've also added a snapshot of the element in the iFrame.
Thanks
Tim
web elements not recognized in iFrame
web elements not recognized in iFrame
- Attachments
-
- iFrameElement.rxsnp
- (108.97 KiB) Downloaded 92 times
Re: web elements not recognized in iFrame
Please also include the following when raising issues:
Ranorex version
Windows version
Any error messages
XPath being used to identify the element, if the issues is identification related
In this case, without seeing the XPath you are using, I would suggest that the iframe needs to be specifically identified in your xpath or Ranorex may not be able to see any of the elements inside it. I would create a rooted folder for the iframe itself and place all child-elements under it in the repository. That makes it easier to adjust things in the future.
Ranorex version
Windows version
Any error messages
XPath being used to identify the element, if the issues is identification related
In this case, without seeing the XPath you are using, I would suggest that the iframe needs to be specifically identified in your xpath or Ranorex may not be able to see any of the elements inside it. I would create a rooted folder for the iframe itself and place all child-elements under it in the repository. That makes it easier to adjust things in the future.
Shortcuts usually aren't...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: web elements not recognized in iFrame
Hi Tim,
Due to security reasons can Ranorex unfortunately not identify any elements within an iFrame on mobile devices.
This is unfortunately nothing we can change, since this is a general restriction, see: Same-origin policy.
I am afraid you need to use image based or coordinate based actions for these elements within the iFrame.
Regards,
Markus
Due to security reasons can Ranorex unfortunately not identify any elements within an iFrame on mobile devices.
This is unfortunately nothing we can change, since this is a general restriction, see: Same-origin policy.
I am afraid you need to use image based or coordinate based actions for these elements within the iFrame.
Regards,
Markus