What i'm trying to do is automate the clicking of a button if a condition is met but there are other buttons that are on the page that have the same name, but do different things.
Example:
Accept Button-->Some random Text1-->more random Text1 : "onclick=randomwebpage.com/12345.php"
Accept button-->some random Text2-->more random Text2 : "onclick=randomwebpage.com/67890.php"
All Accept buttons belong to the same button class "buttong". How would I simulate a click using the webBrowser controls?