class Applitools::Calabash::IosScreenshotProvider
Public Instance Methods
capture_screenshot(options = {})
click to toggle source
# File lib/applitools/calabash/calabash_screenshot_provider.rb, line 66 def capture_screenshot(options = {}) sleep WAIT_BEFORE_SCREENSHOT result = nil Applitools::Calabash::Utils.using_screenshot(context) do |screenshot_path| screenshot = ::ChunkyPNG::Image.from_file(screenshot_path) save_debug_screenshot(screenshot, options[:debug_suffix]) result = Applitools::Calabash::EyesCalabashIosScreenshot.new( Applitools::Screenshot.from_image( screenshot ), scale_factor: density ) end result end