title: delphi TEmbeddedWB component navigation completion
body: <p>I'm new to delphi and TEmbeddedWB (alternative to TWebBrowser which embeds Internet Explorer in Delphi)  , i really don't understand where is my source have problem.</p>
  
  <p>very simple but can't work correctly,</p>
  
  <p>my problem is  in my delphi source EmbeddedWB1.ReadyState &lt;> READYSTATE_INTERACTIVE not work</p>
  
  <p>correctly. there is login form exist </p>
  
  <p>in this site(<a href="http://sports.khan.co.kr/htdocs/login/login.html" rel="nofollow noreferrer">http://sports.khan.co.kr/htdocs/login/login.html</a>)</p>
  
  <p>and if navigate this page, it not working correctly with </p>
  
  <p>EmbeddedWB1.ReadyState &lt;> READYSTATE_INTERACTIVE  because webpage navigate too fast,</p>
  
  <p>so login form element couldn't detected by Embeddedbwb1 and  error happened.</p>
  
  <p>anyone can help me ? what is problem? thanks in advance </p>
  
  <pre><code>      begin
          //WB := EmbeddedWB;
          forms := EmbeddedWB1.doc2.Forms as IHTMLElementCollection;
          theForm := forms.Item(0,'') as IHTMLFormElement;
  
          EmbeddedWB1.Navigate('http://sports.khan.co.kr/htdocs/login/login.html');
          while EmbeddedWB1.ReadyState &lt;&gt; READYSTATE_INTERACTIVE do
          begin
          Application.ProcessMessages;
            Sleep(500);
          end;
            with EmbeddedWB1 do
            begin
              EmbeddedWB1.OleObject.Document.GetElementByID('uid').Value := 'loginid';
              EmbeddedWB1.OleObject.Document.GetElementByID('upw').Value := 'password';
              EmbeddedWB1.OleObject.Document.forms.item(1).submit();
  
            end;
        end;
  </code></pre>