title: VBS to get an Element from a web page is not working properly
body: <p>I want to get the value '24' in my VBS, which is set in the div with id 'test'. My HTML is:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;&lt;body&gt;
  Welcome &lt;br /&gt; Value: = &lt;div id="test"&gt;24&lt;/div&gt; 
  &lt;br&gt; Name: &lt;p id="name"&gt;Someone&lt;/p&gt;&lt;br&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>And my VBS is:</p>
  
  <pre class="lang-vb prettyprint-override"><code>on error resume next
  set ie=createobject("internetExplorer.Application")
  
  ie.navigate "http://localhost/h/getid.html"
  ie.visible = false
  wscript.sleep 2000
  
  dim val
  set val =ie.document.getElementsById("test").item(1).value
  wscript.echo "value is= "&amp; val
  </code></pre>
  
  <p>But the output does not show the value "24", it is just echoing</p>
  
  <blockquote>
    <p>value is=</p>
  </blockquote>
  
  <p>How can I get that value?</p>