Hi,
I have a script that send keys to iexplore.
My problem is... sometimes the page is not completely loaded, and the send keys command becomes adrift.
I tried with Start-Sleep but isn't work because my local internet connection in this case is poor and the time to the page be completely loaded is undefined. Sometime is 5 seconds, sometime is 20 seconds......
Is there a way to sendkeys command, run only when the page is completely loaded?
e.g.
Start-Processiexplore.exewww.bing.com |??????
[System.Windows.Forms.SendKeys]::SendWait("{PrtSc}")
Thanks