I have this link (not a button) that I want to click on …I don’t want to navigate to the link via webbrowser1.navigate(“”) because the link changes but the href and inner text is always the same.
Here is the HTML of the link
Should this be put into the webbrowser or behind a button
<ul id="nav">
<li>
<li>
<li>
<a href="/submit/">Submit a New Story</a>
</li>
<li>
</ul>
Thanks guys.
I’m not sure what is the result you’re seeking for, but if you want to trigger a click as if the client would have clicked it, you could achieve it by obtaining the
WebBrowser.Documentpropertywhich returns aHtmlDocumentclass, you can retrieve thatatag then trigger a click on it.The
Allproperty should be a good start: