I have a page under test with lots of iframes, very few identifiers... when I track my items this is giving me immensely xPath expressions.
Second and more important the identifiers for the iframes are generated dynamically. Which means the test will succeed only once, next time it will fail...
I've worked with Selenium before and I know there is a way to get all the iframes on a page with something like this:
List<WebElement> iframes = wd.findElements(By.xpath("//iframe|//frame"));
Is there a way or something similar in Ranorex to capture all the iFrames from my 'page' or my 'parentItem'
Capture all iframes on a page
Re: Capture all iframes on a page
Hi,
Could you please post a Ranorex snapshot (NOT screenshot) of the page in question? Without, a very least snapshot, it’s pretty hard to suggest something reasonable.
There is something called xpath axes, which helps with xpath navigation, using relationship expressions. You can find more about it here…
https://www.ranorex.com/help/latest/ran ... ntax/#Axes
Could you please post a Ranorex snapshot (NOT screenshot) of the page in question? Without, a very least snapshot, it’s pretty hard to suggest something reasonable.
There is something called xpath axes, which helps with xpath navigation, using relationship expressions. You can find more about it here…
https://www.ranorex.com/help/latest/ran ... ntax/#Axes
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: Capture all iframes on a page
It appears to be working with using the relationship parameters
which you referred to.
Thanks for the help!
which you referred to.
Thanks for the help!