Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Check if iexplore page is completely loaded

$
0
0

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 



Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>