Skip to content

Instantly share code, notes, and snippets.

View azakordonets's full-sized avatar

Andrew Zakordonets azakordonets

View GitHub Profile
@epall
epall / CustomFirefoxProfile.java
Created February 10, 2011 23:22
Setting firefox profile preferences with RemoteWebDriver
import org.openqa.selenium.*;
import org.openqa.selenium.remote.*;
import org.openqa.selenium.firefox.*;
public class CustomFirefoxProfile {
public static void main(String[] args) throws Exception {
DesiredCapabilities capabillities = new DesiredCapabilities("firefox", "3.6.", Platform.WINDOWS);
capabillities.setCapability("job-name", "Fancy Firefox profile");
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("network.http.phishy-userpass-length", 255);