I am very new to Vbscript, however its one of the only tools available to me at my current employment. We have a web based system that I am trying to interact with. The web page reloads frequently. Such as choosing a drop down box the page will hang for a moment while it reloads the page. My script currently pauses for a few seconds between each command, but sometimes does not wait long enough. I was wondering if I could create an IE object from the existing window and check its busy status. So when its done processing I could move on to the next command.
I have already tried:
Set IE = GetObject(, “internetexplorer.application”)
however it gives me an error that: ActiveX component can’t create object ‘GetObject’
I have spend a great deal of time searching google and a few other places to see if there is a simple alternative but have found none. this is going to be an HTA application.
Rather than try to use
GetObjectto latch on to existing instance you can use the code at this link reusing Internet Explorer COM Automation ObjectBut instead I think you should you an approach like below which checks for the
ReadyStateof the automated ie object being ready