[rspec-users] How to handle Java script pop up when you click on a button to perform some action to DB

Ankita ankita.gupta at adslot.com
Thu Mar 22 04:50:54 UTC 2012


I have a button which when clicked opens a JS pop up for confirmation,
confirming which, basically scrubs my DB and so takes a minute to
complete its action.

When I was using watir, I use to put in following code which use to
work, but when switching to Rspec, it gives error so not sure what
should I be replacing here:

$b.confirm(true) do
      $b.button(:value,"Scrub the DB - Full reset /

More information about the rspec-users mailing list