open-webkit-sharp

Get final HTML content after javascript finished by Open Webkit Sharp

﹥>﹥吖頭↗ 提交于 2020-01-07 05:24:12
问题 I'm writing a software that gets the content from URL. When working on that, I run into to problem that I can not get exactly the HTML content after the java script finished. There are some websites that renders HTML by java-script, some do not support browsers which does not run js. I tried using System.Windows.Controls.WebBrowser with WebBrowser.Document in LoadCompleted but no luck. After that, I tried the OpenWebkitSharp library. On the UI, it showes the content of website correctly, but

Webkit.net opening new tabs and windows

为君一笑 提交于 2019-12-12 21:02:36
问题 I can easily do this by using webkit.net's context menu: private void browser1_NewWindowRequest(object sender, WebKit.NewWindowRequestEventArgs e) { ((Form1)MdiParent).AddTab(e.Url.ToString()); } However newWindowrequesteventargs e returns null for javascript events that prompt new tabs/windows, I can sort of fix it just by right clicking then clicking "open link" which does actually opens it in a new tab or window (as does clicking the regular "open in new window"). The following still does