public void takeScreenshot() throws IOException {
File scrFile = ((TakesScreenshot) driver)
.getScreenshotAs(OutputType.FILE);
String fileName = UUID.randomUUID().toString();
File targetFile = new File("target/screenshots/" + fileName
+ ".jpg");
FileUtils.copyFile(scrFile, targetFile);
}
Pages
- Training Details
- Manual + QTP + Selenium
- QTP Scripting for BEGINNERs
- QTP INTERMEDIATE
- EXPERT QTP
- VB Script
- Encrypting a String in QTP
- QTP Scripts
- QTP questions and answers
- Selenium Code Links
- Selenium Framework
- Java OOPs Concepts
- JDBC Connection
- TestNG Build.xml code
- pom.xml
- CONFIGURE ECLIPSE WITH CUCUMBER
- SQL Commands
- EVENT LISTENERS IN SELENIUM WEBDRIVER
- ContactUs
Total Pageviews
Wednesday, 29 July 2015
Screenshot of page Using WebDriver
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment