Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 401 Bytes

File metadata and controls

6 lines (4 loc) · 401 Bytes

This piece of code will take screenshots of elements. I work in the advertising branche and sometimes we need to know whether the ads are not blank. We don't get any revenue of blank advertisements.

Implement the class in your project and add the following two line to your testing code:

TakeElementScreenshot screenshot = new TakeElementScreenshot(driver);
screenshot.shoot(element);