I've run into a problem with automating internet explorer.
I have been using
for some time.However I have a page I regularly access which has a link that uses javascript to launch a password window. This password window can meet the busy and readystate criteria well before it finishes loading. (And yes, it is the child window busy and readystate that I've been checking)
Up to now I have been working around this by hardcoding a 12 second delay - but this is frustrating as sometimes the window loads in ~2 seconds so you are sitting there for 10 seconds waiting for the code to catch up. A few instances 12 seconds isn't enough and the code encounters an error as it is trying to process a page control that isn't loaded.
Therefore I need an alternative method to test that the password window has completed loading before the code continues. Unfortunately I can't provide the webpage that launches that password window (as much as I know it would greatly improve the quantity of replies). But if anyone has an idea for me to test I'd be interested.
(I suppose I could try using a Sleep loop to check for the existence of a known control on the password window - but I'll shelve that idea as a last resort. It seems extremely inefficient)
Bookmarks