Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I'm trying to get data that is 3 iframes deep into the website.
When I scan the web browser with
C#
foreach (HtmlWindow frame in webBrowser1.Document.Window.Frames)

I get the {webBrowser1.Document.Window.Frames} in it I can navigate to the text I need. When I copy the path it looks like this:
C#
((mshtml.HTMLIFrameClass)(((System.Windows.Forms.HtmlWindow)((new System.Linq.SystemCore_EnumerableDebugView(((System.Windows.Forms.HtmlWindow)((new System.Linq.SystemCore_EnumerableDebugView(((System.Windows.Forms.HtmlWindow)((new System.Linq.SystemCore_EnumerableDebugView(webBrowser1.Document.Window.Frames)).Items[0])).Frames)).Items[1])).Frames)).Items[0])).WindowFrameElement.DomElement)).IHTMLFrameBase_src

How can I use that to get the _src? Because when I try to use it I have to remove the Class from HTMLIFrameClass or else it throws an error. And I can't seem to figure out the
C#
System.Linq.SystemCore_EnumerableDebugView
as it says the
SystemCore_EnumerableDebugView
is missing?

What I have tried:

Can't figure out how to get the data out of the layered IFrames. I tried googling why the SystemCore_EnumerableDebugView is missing...? Hence why I'm here.
Posted

1 solution

Managed to get a source using this code
html += ((mshtml.HTMLIFrame)(frame.Frames[1].Frames[0].WindowFrameElement.DomElement)).src;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900