title: Powershell IE login automation unable to find the element by ID
body: <p>Can someone knowledgeable in powershell tell me why I can't find the username input field using its ID "user_name"? I have tried this on other websites and it has worked but for this one it just refuses to find it. I also tried the IHTMLDocument3_getElementsByName method and also IHTMLDocument3_getElementsByTagName looking for things like "input" or even "div". Some div classes pop up but so many are missing there and I have no idea why its missing. Please show me the light.</p>
  
  <pre><code>#ID names
  $IDuserName = "user_name"
  $IDuserPass = "user_password"
  
  $url = "https://isssupport.service-now.com/"
  $ie = New-Object -com InternetExplorer.Application
  $ie.visible = $true
  $ie.navigate($URL)
  
  While ($IE.Busy -eq $true) {Start-Sleep -Milliseconds 1000} 
  
  $ie.Document.IHTMLDocument3_getElementByID($IDuserName).Value = $userName
  </code></pre>
  
  <p>Below is the HTML line for the Username input field</p>
  
  <pre><code>&lt;input name="user_name" id="user_name" type="text" class="form-control" value="" autocomplete="off"&gt;
  </code></pre>