Search This Blog

Subscribe:

Tuesday, September 7, 2010

How to capture screenshot in selenium

Its easy to take a screenshot in selenium . We just need to use the below command.

selenium.captureEntirePageScreenshot("F:\\fullscreenshot","background=#CCFFDD" );

Screenshot will be taken at the time of execution of testcase and will be stored as png file in respective folder as mentioned .In our case it is F:\ fullscreenshot.png.

Enjoy Testing
www.mpowerglobal.com

0 comments:

Post a Comment