I'm trying to fill a WPF WebBrowser page using mshtml. But, I'm not able to find out the id of the button from the html. How can I find the ID? Or is there is any alternative to submit the form?
Code:
mshtml.HTMLDocument doc = (mshtml.HTMLDocument)browser.Document;
try
{
((mshtml.HTMLInputElement)doc.all.item("?????")).click();
}
Html page (Continue is the button text):
<li><a href="/uas/oauth/authenticate?oauth_token=3c708034-081f-4aca-b61c-f6518a1e0f8c&trk=uas-continue" class="btn-primary">Continue</a></li>