I would like to know how to do a click on a button on a website even by clicking on such a debug web element in the browser itself.
I'm using the C # webbrowser component
I have tried some methods here, but without success, even using GetElementsByTagName
and in the html of the site is this way.
<button type="button" ng-click="confirmarPresenca()">ENTRADA</button>
I tried with the following code but with no success in my Windows Form Application C #
HtmlElementCollection el = webBrowser1.Document.GetElementsByTagName("button");
foreach(HtmlElement btn in el)
{
if(btn.GetAttribute("type").Equals("button")
{
btn.InvokeMember("click");
}
}