savePageAsHtm

=**Save web page content using JAVA**=

This method save web page content on your hard drive.

__Must have this imports:__ import java.io.File; import java.io.FileWriter;

public void testSaveContentOfWebPageAsHtm throws Exception { String stored_report = selenium.getHtmlSource;

File f = new File("ApsolutePath" + "name" + ".htm"); FileWriter writer = new FileWriter(f,true); writer.append(stored_report); System.out.println("Report Created is in Location : " + f.getAbsolutePath); writer.close; }