How to get source code after simulate web page button click in code
问题 I am trying to get a source code of a web page which I get after click on a button. I am able to click a button located on a web page. webBrowser1.Navigate(url); while (webBrowser1.ReadyState != WebBrowserReadyState.Complete) { Application.DoEvents(); } webBrowser1.Document.GetElementById("downloadButton").InvokeMember("click"); Now after this a new window appear. Is this possible to get the source code of this new window appear after the click. 回答1: A hacky approach would be to: Attach an