win32 and javascript alerts

Bryan L. Fordham bfordham at socialistsushi.com
Thu Oct 17 13:53:26 EDT 2002


I'm using those nifty win32com extensions to do some unit testing. 
I'm able to control IE with no problems, fill out forms and push the
pretty buttons to make things go.

The one issue I've run into is this:  Say there's an input box called
Spam, that requires a value.  If you click the Go button and Spam is
empty, a little javascript alert box pops up and says "Hey, fill in
Spam!"

well, if I load the page using python and click the Go button with
Spam empty, the javascript alert pops up... and I don't know how to
get rid of it.  Python hangs until I manually clear the alert.

Any ways around this?

Thanks
--B



More information about the Python-list mailing list