0 votes
in Testing by
How to take screenshots in Selenium WebDriver?

1 Answer

0 votes
by
By using the TakeScreenshot function you can take a screenshot. With the help of getScreenshotAs() method, you can simply save that screenshot. Example: File scrFile = ((TakeScreenshot)driver).getScreenshotAs(outputType.FILE);

Related questions

0 votes
asked Dec 6, 2019 in Testing by SakshiSharma
0 votes
asked Dec 6, 2019 in Testing by SakshiSharma
...