Skip to content

Commit 3d09ce4

Browse files
committed
Adding a warn on deprecated FirefoxDriver constructor
1 parent 32fdc61 commit 3d09ce4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public FirefoxDriver(FirefoxBinary binary) {
123123
@Deprecated
124124
public FirefoxDriver(FirefoxProfile profile) {
125125
this(new FirefoxOptions().setProfile(profile));
126+
warnAboutDeprecatedConstructor("FirefoxProfile", "setProfile(profile)");
126127
}
127128

128129
/**

0 commit comments

Comments
 (0)