login to website using HTMLAgilityPack
问题 In the below code, I can set the value of the username and password using the HTMLAgilitypack but I cannot invoke the click event of the login button (the id in the source code of the button is "s1"). Is there anyway for this to be done? The reason I'm not using the WebBrowser is because I will need the HTMLAgilityPack to retrieve data from the page without IDs in the source code. var doc = new HtmlWeb().Load("http://MYURL.com"); doc.DocumentNode.SelectSingleNode("name").SetAttributeValue(