hey, you can use captureEntirepageScreenshot but, this wont be included in the test report due to the class files not looking for this command, I've asked for the class files to be updated to include this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
need double call as only captureScreenshot will show up in results.html page as link to image, captureEntirePageScreenshot will take image of the browser that the test is running in.
hello, how can i take screenshot of testing page only and not the full desktop? thx!
hey, you can use captureEntirepageScreenshot but, this wont be included in the test report due to the class files not looking for this command, I've asked for the class files to be updated to include this.
Slight bug in this
I found answer to this here.
http://clearspace.openqa.org/message/70176
need double call as only captureScreenshot will show up in results.html page as link to image, captureEntirePageScreenshot will take image of the browser that the test is running in.
HTH
Regards
Mark
selenium.captureScreenshot(WebsiteBaseTest.SCREENSHOTS_RESULTS_PATH
+ File.separator
+ methodName + "_"
+ LoggingUtils.timeStampForFileName()
+ ".png");
selenium.captureEntirePageScreenshot(WebsiteBaseTest.SCREENSHOTS_RESULTS_PATH
+ File.separator
+ methodName + "_"
+ LoggingUtils.timeStampForFileName()
+ ".png",GlobalConstants.CAPTUREENTIREPAGESCREENSHOT_BACKGROUND);
3# is a tricky method. I use this to solve the problem.
Hope LoggingSelenium can include captureEntirepageScreenshot() function in next version.