Javascript Popup Solutions not Working (Watir)
I have making automated tests with Watir recently, and these javascript dialog boxes are giving me a headache. They popup at certain points and completely derail any tests. I went to the Watir docs page specifically about this issue [(link)](http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups) and tried every solution. None of them work. This is the one I figured would be the best:

    b.execute_script("window.confirm = function() {return true}")

Nothing. I've tried everything I could think of , can somebody help me figure out what I'm missing?
Javascript Popup Solutions not Working (Watir)
===

I have making automated tests with Watir recently, and these javascript dialog boxes are giving me a headache. They popup at certain points and completely derail any tests. I went to the Watir docs page specifically about this issue [(link)](http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups) and tried every solution. None of them work. This is the one I figured would be the best:

    b.execute_script("window.confirm = function() {return true}")

Nothing. I've tried everything I could think of , can somebody help me figure out what I'm missing?