Tag Archives: Commons IO

Java: How to save / download a file available at a particular URL location in Internet?

Related articles Creating OSGi projects using Eclipse IDE and Maven (singztechmusings.wordpress.com) Working with OSGi and Maven in Eclipse IDE (singztechmusings.wordpress.com) Java download file from URL with unknown filename (stackoverflow.com) OSGi adoption by Large Scale Java-based Enterprise Software Platforms – LinkedIn Case Study (singztechmusings.wordpress.com) How to create/generate OSGi bundles from existing third-party jars? (singztechmusings.wordpress.com) Advertisements

Capturing web page screenshot using WebDriver API

You can use the below snippet to take screenshot and save it where you want. Commons IO libraries can be downloaded here: http://commons.apache.org/io/download_io.cgi