Archive | November, 2012

capybara rspec selenium – slow down the test so you can see alert boxes etc

6 Nov

saw this somewhere and wanted to record it…

require 'selenium-webdriver'
module ::Selenium::WebDriver::Remote
class Bridge

    def execute(*args)
result = raw_execute(*args)['value']
sleep 0.5
result
end
end
end

Pause Capybara…

2 Nov


print "Press Return to continue..."
STDIN.getc