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 button. How can I do this? Please help.
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 button. How can I do this? Please help.
Html Agility Pack is not supposed to be used to simulate clicks on buttons. It is used only for parsing HTML. If you want to send HTTP requests you could use a WebClient.