How to InvokeMember using HtmlAgilityPack
问题 I want to use HtmlAgilityPack class to login. But I don't know how. This is what I've tried. But it's not working. txtUserName.Text = "username"; txtPassword.Text = "password"; HtmlAgilityPack.HtmlDocument doc = new HtmlWeb().Load("about:Tabs"); doc.GetElementbyId("username").SetAttributeValue("value", txtUserName.Text); doc.GetElementbyId("password").SetAttributeValue("value", txtPassword.Text); foreach (HtmlNode node in doc.DocumentNode.SelectNodes("//button[@class='btn login-btn blue pull