How do i programmatically click a button with C# in IE by classname? <p>So i'm trying to create a code which will automatically click buttons for me in my <code>webBroswer1</code> object in my visual studio C# Windows form application.</p> <p>However, the buttons in the website i would want to click do not have IDs, therefore it'd need to be my href/classname</p> <p>The tag of the buttons is <code>&lt;a&gt;</code>and the href is <code>javascript:void(0)</code>, could someone assist me please?</p>