I am having trouble getting an iFrame element and elements within it from one of the pages.
Html structure is the following:
Note that ‘#document’ is a shadow DOM element.
What I tried so far to access the iFrame:
topFrame is always null no matter how many times and in what sequence I’ve refreshed.
framesNumber is always null too.
Using this approach I’m able to get the iFrame as HtmlControl or HtmlContainerControl element but myBox element is always null.
Here again I’m able to get iFrame1 and iFrameHtmlControl elements and to Refresh but result is again null
I tried getting the iframe
And then getting all its child elements with a recursive method which is basically doing for each child
I always get just one child element for topFrame - the Shadow DOM which doesn’t have children so here I figured out that the Shadow DOM element could be the cause of my problems but I’m not sure.
As you can see I'm running out of ideas for this issue which is quite frustrating. Since the main logic of my app reside in that iFrame not being able to operate with it is a true deal breaker for me.
Thank you in advance for any help.