Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to take screenshots in Selenium WebDriver?
Home
Testing
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);
Related questions
0
votes
Q: How to input text in the text box using Selenium WebDriver?
asked
Dec 9, 2019
in
Testing
by
Robindeniel
#selenium-webdriver
Testing-questions-answers
0
votes
Q: Explain how can you find broken links in a page using Selenium WebDriver?
asked
Dec 9, 2019
in
Testing
by
Robindeniel
#selenium-broken-links
Testing-questions-answers
0
votes
Q: What are the different exceptions in Selenium WebDriver?
asked
Dec 6, 2019
in
Testing
by
SakshiSharma
#selenium-webdriver
Testing-questions-answers
0
votes
Q: How to take screenshots in WebDriver?
asked
Mar 30, 2021
in
Selenium
by
sharadyadav1986
#screenshots
selenium-screenshots
webdriver-selenium
0
votes
Q: How do I launch the browser using WebDriver?
asked
Dec 6, 2019
in
Testing
by
SakshiSharma
#webdriver-launch
Testing-questions-answers
0
votes
Q: What is Object Repository? How can we create Object Repository in Selenium?
asked
Dec 9, 2019
in
Testing
by
Robindeniel
#object-repository
Testing-questions-answers
0
votes
Q: istqb selenium certification mock test
asked
May 5, 2020
in
Testing
by
Robindeniel
#istqb-selenium-certification
Testing-questions-answers
0
votes
Q: What is the difference between Selenium and QTP?
asked
Dec 9, 2019
in
Testing
by
Robindeniel
#selenium-vs-qtp
Testing-questions-answers
0
votes
Q: What is the difference between Selenium and Sikuli?
asked
Dec 9, 2019
in
Testing
by
Robindeniel
#selenium-sikuli
Testing-questions-answers
0
votes
Q: When should I use Selenium Grid?
asked
Dec 6, 2019
in
Testing
by
SakshiSharma
#selenium-grid
Testing-questions-answers
...