How can I click through an alert box with a VBScript automating IE?

Posted by DeliriumTremens on Stack Overflow See other posts from Stack Overflow or by DeliriumTremens
Published on 2010-04-30T02:48:59Z Indexed on 2010/04/30 2:57 UTC
Read the original article Hit count: 325

Filed under:
|
|
|
|

I have a VBScript that is running through a list of actions in IE, and at one point the site displays an Alert box with "OK" and "Cancel" as options. 'OK' is focused when the alert box appears, however SendKeys "{ENTER}" isn't doing the trick. I think perhaps the browser window still has the focus of the VBS. How can I tell the VBS to 'OK' the alert box and continue with the routines?

© Stack Overflow or respective owner

Related posts about vbs

Related posts about vbscript