Take Screen Shot in Selenium Webdriver

File scrnsht = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrnsht, new File("path"));

No comments:

Post a Comment

|Software Testing Glossary Series|CTFL|N|O|P|

Non-Functional Requirement: Non-Functional Requirement is a requirement that describes how the component or system will do what it is s...