Selenium WebDriver - How to capture screen shot in Webdriver?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - How to capture screen shot in Webdriver?
File file= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(file, new File("c:\\name.png"));
(Continued on next question...)
Other Interview Questions
|