Module: CapybaraRails::Selenium
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/capybara_rails/selenium.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#wait ⇒ Object
stalls test until ^C is hit useful for inspecting page state via firebug.
Instance Method Details
#wait ⇒ Object
stalls test until ^C is hit useful for inspecting page state via firebug
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/capybara_rails/selenium.rb', line 14 def wait continue = false trap "SIGINT" do puts "Continuing..." continue = true end puts "Waiting. Press ^C to continue test..." wait_until(3600) { continue } trap "SIGINT", "DEFAULT" end |