Skip to content Skip to sidebar Skip to footer

How To Invoke Click Using Html Agility Pack

In WebBrowser( WEBFORMS) we can i InvokeMember('click') when we parse an HTML. How can we do this using HTML AGILITY PACK . How can i use HTTP REQUEST when we have a javascript in

Solution 1:

No htmlagiliypack is not a html rendering engine you cannot invoke a click event . It 's just a parsing tool use Webbrowser or selenium webdriver if you want

Solution 2:

HtmlAgilityPack is only used to parse HTML and it doesn't support invoking events.

To invoke events you could use WebClient to send HTTP Request or Selenium.

For Selenium you could check this answer here: https://stackoverflow.com/a/34244583/7827699

For How to send Http Requests using WebClient: https://msdn.microsoft.com/en-us/library/system.net.webclient(v=vs.110).aspx

Post a Comment for "How To Invoke Click Using Html Agility Pack"