I use the following to assign text and search ok if set $ie.visible = $true. But the text cannot be assigned if set $ie.visible = $false. The text box is still empty after run $ie.Document.getElementById('TextBox_ID') = 'This is'. Is there a way to fix it? Thank
$ie = New-Object -COM "InternetExplorer.Application"
$ie.visible = $true
$ie.Navigate('http://searchtext.com')
While ($ie.busy) { Start-Sleep -Seconds 1 }
$ie.Document.getElementById('TextBox_ID') = 'This is'
$ie.Document.getElementById('Search_ID').click()