title: PowerShell - IE Object, Set value error
body: <p>I want to create a script with PowerShell to check the flight status.
  But it´s not possible for me to set textbox value.</p>
  
  <p>How can I fix it? Thank you in advance!</p>
  
  <p><strong>Error: Property 'value' cannot be found on this object; make sure it exists and is settable.</strong></p>
  
  <p>Code:</p>
  
  <pre><code>#Flight Number (Only Lufthansa)
  #For example flight number
  [string]$flightNumber = "LH 3102"
  
  $ie = new-object -com "InternetExplorer.Application"
  $ie.navigate("http://www.lufthansa.com/de/de/Ankunft-und-Abflug")
  $ie.visible = $true
  sleep 5
  #while ($ie.busy) {sleep -milliseconds 50}
  while($ie.ReadyState -ne 4) {start-sleep -m 100}     
  
  $ie.document.getElementsByName("flightNumber").value = $flightNumber
  #Error
  $ie.document.getElementsByName("flightNumber").IHTMLInputTextElement_value = $flightNumber
  #Error
  $ie.document.getElementsByName("flightNumber").IHTMLInputElement_value = $flightNumber
  #Error
  </code></pre>