# File lib/selenium/rspec/reporting/system_capture.rb, line 39
39:         def capture_html_snapshot
40:           # Skipping HTML Snapshot retrieval, if there is no current Selenium session
41:           return  unless @selenium_driver.session_started?
42: 
43:           html = @selenium_driver.get_html_source
44:           File.open(@file_path_strategy.file_path_for_html_capture(@example), "w") { |f| f.write html }
45:         end