No need to populate profile several times in a row, it can be populated in the last constructor only
@@ -241,11 +241,11 @@ private static FirefoxBinary getBinary(Capabilities capabilities) {
}
public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile) {
- this(binary, profile, populateProfile(profile, DesiredCapabilities.firefox()));
+ this(binary, profile, DesiredCapabilities.firefox());
}
public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, Capabilities capabilities) {
- this(binary, profile, populateProfile(profile, capabilities), null);
+ this(binary, profile, capabilities, null);
}
public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile,
