Take Screenshot

This method is used to take the screenshot with the provided screenshotName. And the saving location of the file can be set through Web Settings. Screenshot will be saved with the time stamp appended to it and the format of the screenshot is PNG


Syntax :

Settings.Web.setScreenshotPath("screenshotPath");
S.TakeScreenShot("screenShotName");