Class: Watir::Element
- Inherits:
-
Object
- Object
- Watir::Element
- Defined in:
- lib/watir_visual_diff/screenshot.rb
Instance Method Summary collapse
Instance Method Details
#screenshot ⇒ Object
5 6 7 |
# File 'lib/watir_visual_diff/screenshot.rb', line 5 def screenshot ChunkyPNG::Image.from_blob(browser.screenshot.png).crop!(wd.location.x, wd.location.y, wd.size.width, wd.size.height) end |