开发者

Checking IE Window Status of a Manually opened IE Window

HI all,

I am trying to script some actions on a web based application by using simple SendKeys in a .VBS script.

The only problem i have come accross is the fact that i have to put Sleeps in the script to wait for pages loading.

I was wondering if there was a was i could monitor an IT window and wait for it to开发者_如何学Python finish loading instead of using a Sleep command.

This would reduce un-needed pauses (if the system is running fast for once)

Thanks,


IE has a 'Busy' property.

When the page is loading: Busy = true When the page is ready: Busy = false

If you use a Do While loop until Busy = false your script will wait until the page is loaded

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜