in Testing by
How to take screenshots in Selenium WebDriver?

1 Answer

0 votes
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 Mar 30 in Selenium by sharadyadav1986
0 votes
asked Aug 22, 2019 in Selenium by john ganales