# File lib/webrat/selenium/selenium_session.rb, line 203 def save_and_open_screengrab return unless File.exist?(Webrat.configuration.saved_pages_dir) filename = "#{Webrat.configuration.saved_pages_dir}/webrat-#{Time.now.to_i}.png" if $browser.chrome_backend? $browser.capture_entire_page_screenshot(filename, '') else $browser.capture_screenshot(filename) end open_in_browser(filename) end