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
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