Ankita
2012-Mar-22 04:50 UTC
[rspec-users] How to handle Java script pop up when you click on a button to perform some action to DB
Hi 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 / reload").when_present.fire_event''onclick'' end