From: Mike B. <mb...@Ga...> - 2003-10-28 00:44:37
|
Benjamin Thompson wrote: > I am attempting to write a test case for a page that contains a > javascript.confirm() as part of the logic. The page branches one way > if the user clicks "ok", and another if they click "cancel". Is there > a way to not only to capture the confirm dialog, but also to effect > clicking on a button? Yes, check out WebClient.setConfirmHandler(...) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |