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
kindly look into http://seleniumready.blogspot.in/2010/11/how-to-upload-file-in-selenium.html
ReplyDelete