I want to click a button on a web page automatically. I am using HtmlAgilityPack. I can take the button\'s Xpath. But I could not fire the click event of the bu
HtmlAgilityPack
Have a look at the following answer: How to click a link element programmatially with HTMLElement?
He is creating a HtmlElement object (via xPath or by any other way) and then "invoking" the click event with the code:
htmlItem.InvokeMember("click");