Skip to content

Commit dbe638e

Browse files
committed
Clean up constructors in the FirefoxDriver used for tests.
1 parent a076f39 commit dbe638e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/client/test/org/openqa/selenium/testing/drivers/SynthesizedFirefoxDriver.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import static org.openqa.selenium.testing.DevMode.isInDevMode;
2323
import static org.openqa.selenium.testing.InProject.locate;
2424

25+
import com.google.common.collect.ImmutableMap;
2526
import com.google.common.io.Files;
2627

2728
import org.openqa.selenium.Build;
@@ -38,11 +39,11 @@ public class SynthesizedFirefoxDriver extends FirefoxDriver {
3839
private static boolean runBuild = true;
3940

4041
public SynthesizedFirefoxDriver() {
41-
super(createTemporaryProfile());
42+
this(new DesiredCapabilities(), new DesiredCapabilities());
4243
}
4344

4445
public SynthesizedFirefoxDriver(FirefoxProfile profile) throws IOException {
45-
super(copyExtensionTo(profile));
46+
this(new DesiredCapabilities(), new DesiredCapabilities(ImmutableMap.of(PROFILE, profile)));
4647
}
4748

4849
public SynthesizedFirefoxDriver(Capabilities desiredCapabilities) {

0 commit comments

Comments
 (0)