title: Login to web using TWebBrowser
body: <p>How do I press the login button using <code>TWebBrowser</code> on the web page "<a href="https://v-tri.tri.co.id:8434/insms/dealer/en/loginin.do" rel="nofollow">https://v-tri.tri.co.id:8434/insms/dealer/en/loginin.do</a>" using Delphi7 ?  </p>
  
  <pre><code>procedure TForm1.Open_webClick(Sender: TObject); 
  begin 
    webbrowser1.Navigate('v-tri.tri.co.id:8434/insms/dealer/en/loginin.do'); 
  end; 
  
  procedure TForm1.InputClick(Sender: TObject); 
  begin 
    WebBrowser1.OleObject.Document.GetElementByID('UserName').setAttribute('value', edit1.Text );
    WebBrowser1.OleObject.Document.GetElementByID('PassWord').setAttribute('value', edit2.Text ); 
  end; 
  
  procedure TForm1.LoginClick(Sender: TObject); 
  begin 
    //WebBrowser1.OleObject.Document ... ?? 
  end;
  </code></pre>