Aug 31, 2011

Capybara not to turn into a blank page after testing

It's a little bit of hacking. You have to go to this file.

C:\Ruby192\lib\ruby\gems\1.9.1\gems\capybara-1.0.0\lib\capybara\selenium\driver.rb

in function reset!, please comment the line @browser.navigate_to('about:blank')

-----

And sometimes when running tests without Spork, Capybara automatically closes browser after the testing is done.

If you want to avoid that, just comment the lines in the same file. The line that calls "quit"