Powershell Web Scipt Freezes when ShowDialog() Window Opens - Does not execute further script


good day,

i using powershell wasp commands login website click on upload, code works , click upload select file script freezes on showdialog winodw select file

$ie.document.getelementbyid("form:filesfield:files:file").click()  #upload button , dialog popsup
select-window -class 'modal' | set-windowactive | send-keys 'c:\temp\20161215.csv~'

the script not second line of code unable set focus when run second line in powershell_ise window while dialog open sets focus , works tried running powershell_ise before or after click showdialog before freezes.

invoke-expression "c:\temp\test.ps1"

file test.ps1:

start-sleep -seconds 15
import-module wasp -force
add-pssnapin wasp
select-window -class 'modal' | set-windowactive | send-keys 'c:\temp\20161215.csv~'

but before or after not work or execute still freezes, please

regards




you have post wasp questions in wasp forum.  forum not support non-ms apps.


\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file