We are running a Powershell script through Octopus where the script launches an instance of IE.
Basically my requirement is i want to launch an IE window and open an url through it , after which it will perform automated clicks and launch a file upload dialog. We are the using SendKeys to input the filename to the dialog window. The powershell script works does this fine when run locally.
However when we run it through Octopus the script gets stuck at the point where the upload dialog is clicked. We read some old blogs where it mentions the Octopus opens the GUI window in IE under background or hidden mode so the window isnt detected by the SendKeys function. Please let us know if there is a way around to make sure the IE window is run in Foreground and visible. We tried running the tentacle under local system account and checked the ‘Allow service to interact with the dekstop’ in the Tentacle service but still no luck.
Below is a small snippet of what we are doing.
$ie = New-Object -Com InternetExplorer.Application
$ie.Visible = $true
Please help us with this issue or a possible solution to get it implemented through Octopus.