Skip to content

Instantly share code, notes, and snippets.

@illicitonion
Created January 20, 2012 16:22
Show Gist options
  • Select an option

  • Save illicitonion/1648196 to your computer and use it in GitHub Desktop.

Select an option

Save illicitonion/1648196 to your computer and use it in GitHub Desktop.
import org.openqa.selenium.firefox.FirefoxDriver;
public class Main {
public static void main(String[] args) throws Exception {
WebDriver driver = new FirefoxDriver();
driver.get("http://www.google.com");
System.out.println((String) ((JavascriptExecutor)driver).executeScript("return '\n';"));
System.out.println("Done");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment