title: C# How to Click Button automatically via WebBrowser
body: <p>The Html code of my click page is :</p>
  
  <pre><code>&lt;input type="submit" id="publishButton-ns" class="ubtn ubtn-block"
   name="publish" tabindex="10" value="Publish Post"&gt;
  </code></pre>
  
  <p>I tried this code for clicking:</p>
  
  <pre><code>webBrowser1.Document.GetElementById("publishButton-ns").InvokeMember("click");
  </code></pre>
  
  <p>but this not found the button.</p>