ansoni / watir-extensions-element-screenshot

Element Screenshot Support for watir
Apache License 2.0
22 stars 12 forks source link

Add saving now optional, Fix crop! error for element out of viewport #9

Open Zejnilovic opened 6 years ago

Zejnilovic commented 6 years ago

Added option to save the screenshot or just to recieve it back as ChunkyPNG::Image so users are now able to work with the image in their automated test.

Fixed error of crop! when the element was too big for the viewport or when it was somewhere in the middle of the page.

Know problem - You still need to scroll to the element and it needs to be visible on the page.