Tag Archives: WebDriver

How to Capture Screen shot using Java for selenium webdriver?

What is the Problem?

How to Capture Screen shot using Java for selenium webdriver?

What should be the solution?

File scrFile = ((TakesScreenshot)myTestDriver).getScreenshotAs(OutputType.FILE);

File scrFile = ((TakesScreenshot)myTestDriver).getScreenshotAs(OutputType.FILE);

How to Capture Screen shot using Java for selenium webdriver FileUtils.copyFile

FileUtils.copyFile(scrFile, new File(“c:\\careerbuilder.jpg”));

import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;

import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class TakesScreenshotTest {

 public static void main(String[] args) throws IOException {
 WebDriver myTestDriver = new FirefoxDriver();

File scrFile = ((TakesScreenshot)myTestDriver).getScreenshotAs(OutputType.FILE);
 FileUtils.copyFile(scrFile, new File("c:\\careerbuilder.jpg"));


Please get this code from PasteBIN


Online Selenium Training


What is Selenium?

How to download and install?

What is Automation testing?

What is Selenium IDE?

What is Selenium RC?

What is Selenium 2 or WebDriver

What is Selenium GRID

What is Selenium Flex Testing

What is Junit framework? How is it useful for Selenium automation?

What is TestNG framework? How is it useful for Selenium automation?

What is Continuous integration? How is it useful for Selenium automation?

What is subversion? How is it useful for Selenium automation?

What is Apache Maven? How is it useful for Selenium automation?

What is the purpose of GURU(Trainer)?

What is ONLINESELENIUMTRAINING.COM ? How is it useful to be selenium automation expert?

What are the benifits of online training?


For a better web


News and reviews from the world of gadgets, gear, apps and the web


News About Tech, Money and Innovation

Digital Inspiration

Tips and tutorials around all things tech.

Thinkwareglobal's Blog

Just another WordPress.com weblog

Kenazari's Blog

Just another WordPress.com weblog

Richfowler1's Blog

Just another WordPress.com weblog

Romaicus's Blog

Just another WordPress.com weblog


Just another WordPress.com site


Just another WordPress.com site


Just another WordPress.com site


digital media expert blog

Thinking in Silverlight

Silverlight/WPF/Windows 8 Store App

Different Journeys

Let's make life easier!




Promoting Indian language Books

Actively Lazy

Software, crafted with passion


An ongoing discussion about SAP infrastructure

SAP Career

Your Career Mentor


Just another WordPress.com site

The secret product manager

Thoughts about product management, SUSE, Linux, ARM processors, Cloud, AIX, Power Systems, and other things that interest me

Sap Certification Material . Com

Quality store for sap software and courses

Simon Les Flex's Blog

SAP Process Integration Specialist - NOW WE CAN DO BETTER!

Oracle Technologies Primer

An Oracle Fusion Middleware and iPaaS blog!

Gilberto Holms

Java, Middleware, SOA Architecture Blog

The Skeleton

Java code skeletons, tips and pointers

J@n van Zoggel

integration, innovation & random technology stuff

The Pragmatic Integrator

Hints and tips from a pragmatic integration specialist


The pace of life..

Optimalbg's Blog

Just another WordPress.com site

IT Jobs in USA

Keep the track of this Blog if you are looking out for some good Opportunities to work in USA....

Referral Jobs | Right Place to Get a Job

Hurry you are one Click away to get a job - Fresher Jobs for 2012, 2013 fresher’s and also high paid jobs for well Experienced IT professionals on Referal jobs.


ISO Consulting | ISO 27001 | ISO 20000 | CMMI | BCM | GRI Sustainability Reporting & Assurance | eLearning | Trainings | Philippines

Michael Korn's Blog

Musings on Life, Career, Faith and Technology


Just another WordPress.com weblog


.net, WCF, Unity, IOC, SQL

SQA and Testers Blog

Just another WordPress.com weblog

Expertqtp's Weblog

Just another WordPress.com weblog

Sai Chamarthi

Experienced Testing Professional


A great WordPress.com site

Suresh4qtp's Blog

Just another WordPress.com site


This WordPress.com site is the cat’s pajamas

It's always something...

Just another WordPress.com weblog

Faculty of Information Technology - Lê Ngọc Tiến

Be Yourself! Simplify Our Goals! Nothing is Impossible!

Anti-Malware Testing

Thoughts on security product testing past and present

Methods & Tools

Practical knowledge for the software developer, tester and project manager