class Applitools::Calabash::CalabashScreenshotProvider
Constants
- WAIT_BEFORE_SCREENSHOT
Attributes
context[R]
debug_screenshot_provider[R]
density[R]
Public Class Methods
new(_options = {})
click to toggle source
# File lib/applitools/calabash/calabash_screenshot_provider.rb, line 9 def initialize(_options = {}) @density = 1 end
Public Instance Methods
using_context(value)
click to toggle source
# File lib/applitools/calabash/calabash_screenshot_provider.rb, line 18 def using_context(value) @context = value self end
with_debug_screenshot_provider(value)
click to toggle source
# File lib/applitools/calabash/calabash_screenshot_provider.rb, line 23 def with_debug_screenshot_provider(value) Applitools::ArgumentGuard.is_a?( value, 'debug_screenshot_provider', Applitools::DebugScreenshotProvider ) @debug_screenshot_provider = value self end
with_density(value)
click to toggle source
# File lib/applitools/calabash/calabash_screenshot_provider.rb, line 13 def with_density(value) @density = value self end
Private Instance Methods
save_debug_screenshot(screenshot, suffix)
click to toggle source
# File lib/applitools/calabash/calabash_screenshot_provider.rb, line 35 def save_debug_screenshot(screenshot, suffix) suffix = suffix.join('_') if suffix.respond_to? :join debug_screenshot_provider.save(screenshot, suffix || '') if debug_screenshot_provider end