Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
WHY IS SCREENSHOT NECESSARY?
HOW TO TAKE A SCREENSHOT IN SELENIUM?
DEMO
www.edureka.co/testing-with-selenium-webdriver
www.edureka.co/testing-with-selenium-webdriver
https://www.edureka.co/testing-with-selenium-webdriver
Screenshots are the proof
which helps in analyzing
where and when a...
https://www.edureka.co/testing-with-selenium-webdriver
Bug analysis
www.edureka.co/testing-with-selenium-webdriver
www.edureka.co/testing-with-selenium-webdriver
TakesScreenshot()
Indicates the driver can capture
screenshot and store it
...
Copyright � 2017, edureka and/or its affiliates. All rights reserved.
www.edureka.co
www.edureka.co
How to take a screenshot in Selenium WebDriver | Edureka
How to take a screenshot in Selenium WebDriver | Edureka
Upcoming SlideShare
Loading in …5
×

How to take a screenshot in Selenium WebDriver | Edureka

70 views

Published on

YouTube Link: https://youtu.be/qkoYAvVfdX0
** Selenium Training: https://www.edureka.co/selenium-certification-training **
This Edureka PPT on ‘How to take a screenshot in Selenium WebDriver’ helps you understand how easily you can screenshot your test cases.
Topics to be covered in this PPT:
Why is screenshot necessary?
How to take a screenshot in Selenium?
Demo

Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in

Published in: Technology
  • Be the first to comment

  • Be the first to like this

How to take a screenshot in Selenium WebDriver | Edureka

  1. 1. WHY IS SCREENSHOT NECESSARY? HOW TO TAKE A SCREENSHOT IN SELENIUM? DEMO www.edureka.co/testing-with-selenium-webdriver
  2. 2. www.edureka.co/testing-with-selenium-webdriver
  3. 3. https://www.edureka.co/testing-with-selenium-webdriver Screenshots are the proof which helps in analyzing where and when a test fails
  4. 4. https://www.edureka.co/testing-with-selenium-webdriver Bug analysis
  5. 5. www.edureka.co/testing-with-selenium-webdriver
  6. 6. www.edureka.co/testing-with-selenium-webdriver TakesScreenshot() Indicates the driver can capture screenshot and store it getScreenshotAs() File screenshotFile =((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); String screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.X); Capture the screenshot and store it in the specified location X getScreenshotAs(OutputType<X> target) throws WebDriverException
  7. 7. Copyright � 2017, edureka and/or its affiliates. All rights reserved. www.edureka.co
  8. 8. www.edureka.co

×