title: PowerShell to select a variable from a Webform
body: <p>Given the code below I am trying to use PowerShell to select &quot;Yes&quot; on the form.</p>
  <pre><code>&lt;select name=&quot;fldQuestion_48159F9B94B2409BAF899C57039D3759_C3E2410FA55F43CA84D9FA6426910A93&quot; id=&quot;fldQuestion_48159F9B94B2409BAF899C57039D3759_C3E2410FA55F43CA84D9FA6426910A93&quot; class=&quot;fieldvalue formSelect&quot; onchange=&quot;this.className='fieldvaluechanged formSelect';&quot;&gt;
                          &lt;option value=&quot;&quot;&gt;&lt;/option&gt;
                          
                          
                       &lt;option value=&quot;CFFB99C9FB074BC29C1A8ECA6A35203F&quot;&gt;Yes&lt;/option&gt;
                          
                      &lt;/select&gt;
  </code></pre>
  <p>I have tried the following:</p>
  <p>($ie.document.getElementByID(&quot;fldQuestion_438951432F844DA5A8ED19532EBCD50C_19FBC6D011F44E8FA8DF712A1C1F910D&quot;) |select -first 1).value = 'CFFB99C9FB074BC29C1A8ECA6A35203F'</p>
  <p>and</p>
  <p>($ie.document.getElementByID(&quot;fldQuestion_438951432F844DA5A8ED19532EBCD50C_19FBC6D011F44E8FA8DF712A1C1F910D&quot;) |select -first 1).value = $._CFFB99C9FB074BC29C1A8ECA6A35203F</p>
  <p>and</p>
  <p>($ie.document.getElementByID(&quot;fldQuestion_438951432F844DA5A8ED19532EBCD50C_19FBC6D011F44E8FA8DF712A1C1F910D&quot;) |select -first 1).value = 'Yes'</p>
  <p>but keep getting errors like this</p>
  <p>The property 'value' cannot be found on this object. Verify that the property exists and can be set.
  At line:30 char:1</p>
  <ul>
  <li>($ie.document.getElementByID(&quot;fldQuestion_438951432F844DA5A8ED19532EB ...</li>
  <li>
  <pre><code>  + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyAssignmentException
  
  </code></pre>
  </li>
  </ul>
  <p>Any help would be appreciated</p>