Class: Applitools::Appium::Screenshot
- Inherits:
-
EyesScreenshot
- Object
- EyesScreenshot
- Applitools::Appium::Screenshot
- Defined in:
- lib/applitools/appium/screenshot.rb
Constant Summary
Constants inherited from EyesScreenshot
EyesScreenshot::COORDINATE_TYPES
Instance Attribute Summary
Attributes inherited from EyesScreenshot
Instance Method Summary collapse
Methods inherited from EyesScreenshot
#convert_region_location, #initialize, #sub_screenshots
Methods included from Helpers
#abstract_attr_accessor, #abstract_method, #env_variable, #environment_attribute, environment_variables
Constructor Details
This class inherits a constructor from Applitools::EyesScreenshot
Instance Method Details
#sub_screenshot(region, _coordinate_type, _throw_if_clipped = false, _force_nil_if_clipped = false) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/applitools/appium/screenshot.rb', line 6 def sub_screenshot(region, _coordinate_type, _throw_if_clipped = false, _force_nil_if_clipped = false) self.class.new( Applitools::Screenshot.from_image( image.crop(region.x, region.y, region.width, region.height) ) ) end |