Login
Remember
Register
Ask a Question
How to take screenshots in Selenium WebDriver?
0
votes
asked
Dec 9, 2019
in
Testing
by
Robindeniel
How to take screenshots in Selenium WebDriver?
#selenium-screenshot
Testing-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 9, 2019
by
sharadyadav1986
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);
...