Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Waiting for page to load before using sendkeys

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
Hi,

I've got a script which loads the online portal for our email archiving system (Mimecast) and then fills in the form using details we store in our database:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "a"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "b"

etc...etc...

This works fairly well on the whole but sometimes if the page takes too long to load the SendKeys part doesn't work. Is it possible in vbscript to wait until the page has finished loading before proceeding or is the only way to do it to find the slowest PC we've got, see what the maximum time that takes and then do a pause for that amount of time?

Thanks very much

Ed
 
How is the portal loaded ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top