How to get HtmlDocument after jquery changes? (HtmlAgilityPack)

c# html-agility-pack jquery

Question

Is it possible to get HtmlDocument after jQuery changes? For example, get element by 'myId' after the next change.

The js code:

$(document).ready(function () 
{
    $("#myContainer").html("<div id='myId'></div>");
});

The C# code:

var doc = new HtmlDocument();
...
doc.GetElementbyId("myId");

How?

Popular Answer

You might be able to do that using a mix of HtmlAgilityPack and WebBrowser control. I think it's worth to take a look. You would load the html using WebBrowser and you'd parse it with HtmlDocument.

This Code Project article could be a good start point




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why