Hi again.
I'm using Mink to test a site via the Sahi driver. The site uses
Javascript's confirm() function (eg to confirm deletion of a record),
and I need to test that this works for both 'ok' and 'cancel' buttons.
If I understand it correctly, Sahi supresses the actual alert/confirm
dialog, and defaults to simulating a positive response. This is a good
start, but I also need to test the negative response.
The Sahi documentation discusses this topic a bit (see
http://sahi.co.in/w/_expectconfirm ) but I'm unsure how to translate
this to Mink. Any help on this would be appreciated. :)
It would be good to be able to also run the same tests in Selenium,
but my main focus is Sahi at the moment.
Many thanks.
Simon C.