title: Automating Internet Explore via PowerShell - Select multiple check boxes not working
body: <blockquote>
  <h1>Logs into site</h1>
  </blockquote>
  <pre><code>$usernameMI = &quot;myusername&quot;
  $passwordMI = &quot;mypassword&quot;
  
  $ie = New-Object -com InternetExplorer.Application
  $ie.visible = $true
  $ie.navigate(&quot;https://mobility-vsp1.corp.com/mifs/login.jsp&quot;)
  while($ie.ReadyState -ne 4) {start-sleep -m 100}
  $ie.document.getElementById(&quot;username&quot;).value= $usernameMI
  $ie.document.getElementById(&quot;password&quot;).value = $passwordMI
  $ie.document.getElementById(&quot;login-btn&quot;).click();
  </code></pre>
  <blockquote>
  <h1>This part below will prompt for first and last name then search for the device and user</h1>
  </blockquote>
  <pre><code>while($ie.busy -eq $ture) 
  {
  start-sleep -milliseconds 1000;
  }
  
  
  $Devicesearch = Read-Host 'Enter email alias (Example: First.Last)'
  $ie.document.getElementById(&quot;simpleSearch-1099-inputEl&quot;).value = $Devicesearch
  $ie.document.getElementById(&quot;ext-gen1231&quot;).click();
  </code></pre>
  <blockquote>
  <h1>This is where I can not select the checkbox (this checkbox checks all checkboxes when clicked)</h1>
  <h1>In order to do this I tried pulling out the embedded object this will give the checkbox a value I can manipulate, but I have not gotten it to work.</h1>
  <h1>I have tried id.document.getElementById(&quot;gridcolumn-1145-textEl&quot;).click without piping but that didn't work either</h1>
  </blockquote>
  <pre><code>$chkbox = $ie.document.getElementById(&quot;gridcolumn-1145-textEl&quot;)
  ($chkbox | where {$_.tagName -eq &quot;x-grid-row-checker-on&quot;}).selected
  </code></pre>