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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: