Issue with access to iFrame, webdriver using
Posted: Sat Sep 05, 2020 2:49 pm
Hi, I try to use WebDriver endpoint with Ranorex.
All works well when Ranorex works with a simple path, but not when it works with iframe.
It will be better if I provide the example:
1. I can access to any element Ranorex endpoint using:
2. I can access the elements that contained outside the iframe WebDriver endpoint using: (including the iframe itself)
3. I have the error when I try to get access with WebDriver endpoint to any element that contains inside iframe :
How I can use elements in iframe?
All works well when Ranorex works with a simple path, but not when it works with iframe.
It will be better if I provide the example:
Code: Select all
<div id="layout">
<span id="element1"></span>
<iframe id="frame1">
#document
<html>
<span id="element2"></span>
</html>
</iframe>
</div>
Code: Select all
"//span[#'element1']"
"//iframe[#'frame1']//span[#'element2']"
Code: Select all
"//span[#'element1']"
"//iframe[#'frame1']"
Code: Select all
"//iframe[#'frame1']//span[#'element2']"
How I can use elements in iframe?