lib/capybara/node/email.rb
# Save a snapshot of the page and open it in a browser for inspection
#
# @param  [String] path     The path to where it should be saved [optional]
#
Save a snapshot of the page and open it in a browser for inspection
Save a snapshot of the page and open it in a browser for inspection
def save_and_open(file_name = nil)
    require 'launchy'
    Launchy.open(save_page(file_name))
  rescue LoadError
    warn 'Please install the launchy gem to open page with save_and_open_page'
  end
def save_and_open ( file_name = nil ) require 'launchy' Launchy . open ( save_page ( file_name ) ) rescue LoadError warn 'Please install the launchy gem to open page with save_and_open_page' end
Save a snapshot of the page and open it in a browser for inspection
Save a snapshot of the page and open it in a browser for inspection
file_name
<not_specific>
<not_specific>
path The path to where it should be saved [optional]
path The path to where it should be saved [ optional ]