title: Input values to the test box in html using VBscript
body: <p>I am trying to input / set value to Text box in html using VBscript, In order to automate a small step in my testing process.</p>
  
  <p>I use the below VBscript to achieve the same</p>
  
  <pre><code>Dim objIE
  Set objIE = WScript.CreateObject ("InternetExplorer.Application")
  Set objShellApp = CreateObject("Shell.Application")
  objIE.Width = 700
  objIE.Height = 250
  objIE.Toolbar = false
  objIE.statusbar = false
  objIE.Navigate "http://MYURL"
  objIE.Visible = true
  Set objIE = Nothing 'Set nothing to the object due to trusted policies in IE
  For Each objWindow In objShellApp.Windows
  If LCase(objWindow.LocationName) = LCase("MSec Test Application 5.9.22") Then
    Set objIE = objWindow
  End If
  Next
  objIE.Document.getElementsByName("whoId").Items(0).value =    "CN45234"                                   'This step not working
  objIE.Quit
  </code></pre>
  
  <p>That Text box element which I tried to set value, has property like the below [I took it using firebug]</p>
  
  <pre><code>&lt;td class="fr"&gt; whoId&lt;/td&gt;
  &lt;td&gt;
  &lt;input class="fr" value="" name="whoId"&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>While executing the above VBscript it ends up with error message as<img src="https://i.stack.imgur.com/eUKcL.png" alt="enter image description here"></p>
  
  <p>I spend lot of time to find solution for this issue, But no luck. 
  Kindly help me to fix it.</p>
  
  <p>Thanks,
  Madhan</p>