Friday, June 17, 2016

How To Take Partial Screenshot in Selenium Webdriver

Folks, sometimes we don't want to take screenshot of the full screen and inspite of the particular element due to some reasons. Reasons might be, full size images would last in huge memory storage for image directory or sometimes we need to take element specific screenshot due to test case requirement which makes more sense.
                                                         

Sharing Webdriver's code snippet for taking partial screenshot below:






Feel free to share your views in comments. Enjoy and Happy Learning :)


@uthor 
Vaneesh Behl
vaneesh.behl@gmail.com