We are using DotNetBrowser.dll in WPF application, We have a following question:
1) HTML part is not getting rendered in WPF BrowserView
without using waitEvent.waitOne(5000)
. We have tried to load HTML on both events:
a) onCompleted
b) OnDataReceived
by using the AjaxHandler.
Please confirm if WPF Browserview requires some time to load HTML. Please update me on the same. Following is my code.
//waitEvent.WaitOne(5000);
foreach (long frameId in BrowserView.Browser.GetFramesIds())
{
frameDocument = BrowserView.Browser.GetDocument(frameId);
}
List<DOMNode> nodeslist = frameDocument.GetElementsByClassName("className");
The nodeslist always return null if we comment the waitEvent.WaitOne(5000)
line.
Note: When we add waitEvent.waitOne(5000)
everything works fine.