title: VBScript Fill Web Login Form
body: <p>I can't figure out how can I fill Login Form with User and Pass and click on "OK" button.<br>
  I've tried several variants and nothing has been typed.<br>
  I made also I print screen with html code for each form.</p>
  
  <p><a href="https://i.stack.imgur.com/lxGVp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lxGVp.png" alt="enter image description here"></a>  </p>
  
  <pre><code>On error resume next
  Dim WshShell, objIE, ElementCol
  Dim LinkHref
  
  LinkHref = "https://www...."
  
  Set WshShell = WScript.CreateObject("WScript.Shell")
  Set objIE = CreateObject("InternetExplorer.Application")
  objIE.Visible = False    
  
  objIE.Navigate LinkHref 
  wshShell.AppActivate objIE
  
  Do While objIE.Busy
      wscript.sleep 100
  Loop
  
  Set ElementCol = objIE.Document.getElementsByTagName("a")
  
  For Each Link In ElementCol
      If Link.innerHTML = "Continue to this website (not recommended)." Then
          Link.Click
  Exit For
  End If
  Next
  
  
  objIE.Visible = True
  
  objIE.Document.All.Item("S01LOGIN").value = "myusername"
      'objIE.Document.getElementByName("S01LOGIN").Value = "myusername"
      'objIE.document.getElementById("S01LOGIN").value = "myusername"
  
  objIE.Document.All.Item("S02PASS").value = "mypass"
      'objIE.Document.getElementByName("S02PASS").Value = "mypass"
      'objIE.document.getElementById("S02PASS").value = "mypass"
  </code></pre>
  
  <p>I use IE11 and I think this is the problem</p>