Module: Capybara::ScreenshotOverrides

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

Instance Method Summary collapse

Instance Method Details

#using_session(name, &block) ⇒ Object Also known as: using_session_with_screenshot



4
5
6
7
8
9
# File 'lib/capybara-screenshot/capybara.rb', line 4

def using_session(name, &block)
  original_session_name = Capybara.session_name
  Capybara::Screenshot.final_session_name = name
  super(name, &block)
  Capybara::Screenshot.final_session_name = original_session_name
end