We are using Ranorex (version 6.2.1) for automation test, currently we are facing a critical issue, hope you guys can help us


In our login page, the input box of username and password are hidden in iframe. It looks like Ranorex cannot identify UI elements in iframe. When running test case, ranorex can not find the elements. Our product is on desktop using Chrome, technically iframeTag is already supported by Ranorex.
The UI elements level is like: iframeTag->BodyTag->DivTag->DivTag->FormTag->DivTag->InputTag
I tried to use C# codes to find the InputTag elements, but it looks like Ranorex can only find the descendants of iframeTag: BodyTag, the descendants of BodyTag can not be found. The snippet of my code:
// find descendants in IframeTag
Report.Info("the name of this element:"+iframetagInfo.FindAdapter<IFrameTag>().TagName);
IList<BodyTag> descendantsIframe = iframetagInfo.FindAdapter<IFrameTag>().FindDescendants<BodyTag>();
Report.Info("the number of BodyTag descendants in Iframe:"+descendantsIframe.Count);
foreach(BodyTag child in descendantsIframe){
Report.Info(child.ToString());
IList<DivTag> descendantsBodyTag = child.FindDescendants<DivTag>();
foreach(DivTag child2 in descendantsBodyTag){
Report.Info(child2.ToString()); // no output
}
}
Anyone knows how to get this work?. Thanks in advance.
Best Regards