I need to parse html code after executing javascript code inside this document. I use webBrowser control for downloading and controling html.
For example, I have some javascript in my html code.
<script type="text/javascript" src="http://site.com/script.js"></script>
Thank for your answers.
P.S. I mean: I must parse all code with some text wich can return javascript. So, I can parse document only after execution javascript. Becouse I need some part of dinamic content wich will be added with javascript.
Added
I got content with javascript generated content. I skipped this one, because I was looking for some content that was in iframe which was generated with javascript.
And now I have another question. In my document I have few iframes. I am trying to get content from some frames. In the next way:
var htmlcol = webBrowser1.Document.Window.Frames;
foreach (HtmlWindow item in htmlcol)
{
try
{
Console.Write(item.Name);
}
catch (System.Exception ex)
{
MessageBox.Show("Something wrong");
}
}
But in this way I have exception: 'System.UnauthorizedAccessException'. How I can get access to html of frames?
P.P.S. Sory for my bad english :)