title: IE 9 error getElementbyId: Object required
body: <p>for some reason, VBS below works like a charm in IE 8, but in IE9 on both of my Laptops 
  I get Object Required at <code>.getElement</code>.</p>
  
  <p>How can I fix this please.</p>
  
  <pre><code>WScript.Quit Main
  
  Function Main
    Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
    IE.Visible = True
    IE.Navigate "http://desistream.tv/en/index.shtml"
    Wait IE
    With IE.Document
      .getElementByID("login_username").value = "myuser"
      .getElementByID("login_password").value = "mypass"
      .getElementByID("frmLogin").submit
    End With
  End Function
  
  Sub Wait(IE)
    Do
      WScript.Sleep 500
    Loop While IE.ReadyState &lt; 4 And IE.Busy 
    Do
      WScript.Sleep 500
    Loop While IE.ReadyState &lt; 4 And IE.Busy 
  End Sub
  
  Sub IE_OnQuit
    On Error Resume Next
    WScript.StdErr.WriteLine "IE closed before script finished."
    WScript.Quit
  End Sub
  </code></pre>
  
  <p><strong>edit</strong></p>
  
  <p>this is what I got so far in JScript</p>
  
  <pre><code>var WshShell = WScript.CreateObject("WScript.Shell");
  WshShell.Run("Chrome www.desistream.tv", 10, true);
  WScript.Sleep(500); 
  </code></pre>