You can do it with <expectDialog> http://webtest.canoo.com/webtest/manual/expectDialog.html http://webtest.canoo.com/webtest/manual/expectDialogs.html
Hope that helps, -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lisa Crispin Sent: Friday, September 15, 2006 11:19 AM To: [email protected] Subject: [Webtest] javascript popups A couple years ago we struggled with trying to handle javascript popup windows with WebTest and never figured out how to do it. I've been searching the archive to see if there has been improvement since version 2 but I can't quite tell. If I have a javascript window such as this, how can I click the ok button with WebTest? Our current workaround is either to just go directly to the url, or write the script in Watir where we know how to click this button. onclick="javascript: if (window.confirm('Are you sure you want to delete \'Monthly Employees\'?')) location.href='/plan/manageEmployeeGroups.vm?mode=delete&groupId=16606'; "" Thanks, Lisa _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

