public String captureEntirePageScreenshot ( ) { String imageName = generateImageName ( ) ; String imageLink = generateImageLink ( imageName ) ; try { app . takeScreenshot ( imageName ) ; screenshots . add ( imageName ) ; } catch ( Exception e ) { log . error ( e ) ; imageLink = "<br/><b><font class='fail'>No Screenshot Available</font></b>" ; } return imageLink ; }
Captures the entire page screen shot and created an HTML file friendly link to place in the output file