Class: Applitools::Calabash::EyesCalabashIosScreenshot
- Inherits:
-
EyesCalabashScreenshot
- Object
- EyesScreenshot
- EyesCalabashScreenshot
- Applitools::Calabash::EyesCalabashIosScreenshot
- Defined in:
- lib/applitools/calabash/eyes_calabash_ios_screenshot.rb
Constant Summary
Constants inherited from EyesCalabashScreenshot
Applitools::Calabash::EyesCalabashScreenshot::CONTEXT_RELATIVE, Applitools::Calabash::EyesCalabashScreenshot::DRIVER, Applitools::Calabash::EyesCalabashScreenshot::SCREENSHOT_AS_IS
Instance Attribute Summary
Attributes inherited from EyesCalabashScreenshot
Instance Method Summary collapse
Methods inherited from EyesCalabashScreenshot
#convert_location, #initialize, #intersected_region, #location_in_screenshot, #scale_it!, #sub_screenshot
Constructor Details
This class inherits a constructor from Applitools::Calabash::EyesCalabashScreenshot
Instance Method Details
#convert_region_location(region, from, to) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/applitools/calabash/eyes_calabash_ios_screenshot.rb', line 7 def convert_region_location(region, from, to) case from when DRIVER case to when SCREENSHOT_AS_IS region.scale_it!(scale_factor) else raise Applitools::EyesError, "from: #{from}, to: #{to}" end when CONTEXT_RELATIVE case to when SCREENSHOT_AS_IS region else raise Applitools::EyesError, "from: #{from}, to: #{to}" end else raise Applitools::EyesError, "from: #{from}, to: #{to}" end region end |