No need to populate profile when creating a command executor, it uses capabilities just to recognize legacy mode
@@ -250,7 +250,7 @@ public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile, Capabilities
public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile,
Capabilities desiredCapabilities, Capabilities requiredCapabilities) {
- this(createCommandExecutor(populateProfile(profile, desiredCapabilities), binary, profile),
+ this(createCommandExecutor(desiredCapabilities, binary, profile),
populateProfile(profile, desiredCapabilities), requiredCapabilities);
this.binary = binary;
}
