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

1 Answer

0 votes
by
TakeScreenshot interface can be used to take screenshots in WebDriver.

getScreenshotAs() method can be used to save the screenshot

File scrFile = ((TakeScreenshot)driver).getScreenshotAs(outputType.FILE);

Related questions

0 votes
asked Mar 30, 2021 in Selenium by sharadyadav1986
0 votes
asked Aug 22, 2019 in Selenium by john ganales
...