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.
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.
No comments:
Post a Comment