title: Using webbrowser to click on a button in a webpage
body: <p>so what I need to do is to use this code:</p>
  
  <pre><code>WebBrowser browser = new WebBrowser();
  browser.Navigate("www.somthing.com");
  browser.Document.GetElementById("ID").InvokeMember("click");
  </code></pre>
  
  <p>and then i need to find the id of the button in the page and put in my code but my problem is some of the buttons don't have Id's! what should I do then? they only have type and class and some other things but no Id. i realized that some buttons might be java and maybe that's why i can't click on them by the usual way. so do you know what should I do? </p>