Browser component for Java or C#
Is there any web browser component for Java or C# that supports JavaScript and ca开发者_如何学运维n detect when a page fully loaded?
(When the page and its images are loaded, and the ajax requests are complete.)Yes, check out the Elicpse SWT browser widget
http://www.eclipse.org/swt/
But keep in mind that "when AJAX requests are complete" is not a trivial issue. If actions once the page is "loaded" cause additional async DOM modifications, then when is it "finally loaded" becomes an issue.
C# has the WebBrowser
class which actually just is the IE that is installed on your computer. It's quite rich in functionality and has many methods. Perhaps it is enough for your goal. Certainly IE can do javascript and "knows" when Ajax calls are finished.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx
精彩评论