title: Entering text in website textbox using c#
body: <p>I am trying to automate fill the textbox of a  website in c# and i used:</p>
  
  <pre><code> private void button1_Click(object sender, EventArgs e)
      {
          System.Windows.Forms.WebBrowser webBrowser = new WebBrowser();
          HtmlDocument document = null;
          document=webBrowser.Document;
          System.Diagnostics.Process.Start("http://www.google.co.in");
  
          document.GetElementById("lst-ib").SetAttribute("value", "ss");
      }
  </code></pre>
  
  <p>The webpage is opening but the text box is not filled with the specified value. I have also tried innertext instead of setAttribute. I am using windows forms.</p>