Questions tagged [takesscreenshot]

TakesScreenshot is the public interface of Selenium that provides a method getScreenshotAs()to capture the screenshot and store it in the specified location.

TakesScreenshot

TakesScreenshot is the public interface that provides a method getScreenshotAs() to capture the screenshot and store it in the specified location and implements the following classes:

  • FirefoxDriver
  • ChromeDriver
  • InternetExplorerDriver
  • EdgeDriver
  • OperaDriver
  • SafariDriver
  • EventFiringWebDriver
  • RemoteWebDriver
  • RemoteWebElement

This implies that the driver that can capture a screenshot and store it and is achieved by casting the driver instance into TakesScreenshot type instance.

Reference: Interface TakesScreenshot

46 questions
-4
votes
1 answer

java.io.FileNotFoundException (Access is denied) error while capturing screenshot in selenium

Below is the error that am getting while running the script to capture screenshot in selenium webdriver using Java. [RemoteTestNG] detected TestNG version 6.14.3 Starting ChromeDriver 76.0.3809.126…
1 2 3
4