Sha256: 86a1c0c1a8e649193f65622e02ac12e471378b7769d56828a867ec59f3c900d2
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
require 'rubygems' require 'safariwatir' module WebTestHtmlFormatterOsxHelper def save_screenshots(dir, spec_number) img_path = "#{dir}/#{spec_number}.png" # How do we capture the current window?? `screencapture #{img_path}` img = Magick::Image.read(img_path)[0] save_thumb(img, dir, spec_number) end end class Watir::AppleScripter def document_html execute(%|document.documentElement.innerHTML;|) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-0.7.4 | vendor/web_spec/web_test_html_formatter_osx_helper.rb |
rspec-0.7.5 | ../web_spec/web_test_html_formatter_osx_helper.rb |