Module: Capybara::SessionScreenshotOverrides

Defined in:
lib/capybara-screenshot/capybara.rb

Instance Method Summary collapse

Instance Method Details

#within_window(window_or_handle) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/capybara-screenshot/capybara.rb', line 32

def within_window(window_or_handle)
  super
rescue Exception
  Thread.current[:capybara_screenshot_offending_window] = window_or_handle

  raise
end