You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Initializes a new instance of the <see cref="FirefoxDriver"/> class.
107
103
/// </summary>
108
104
publicFirefoxDriver()
109
-
:this(newFirefoxBinary(),null)
105
+
:this(newFirefoxOptions(null,null))
110
106
{
111
107
}
112
108
@@ -116,7 +112,7 @@ public FirefoxDriver()
116
112
/// <param name="profile">A <see cref="FirefoxProfile"/> object representing the profile settings
117
113
/// to be used in starting Firefox.</param>
118
114
publicFirefoxDriver(FirefoxProfileprofile)
119
-
:this(newFirefoxBinary(),profile)
115
+
:this(newFirefoxOptions(profile,null))
120
116
{
121
117
}
122
118
@@ -125,8 +121,9 @@ public FirefoxDriver(FirefoxProfile profile)
125
121
/// </summary>
126
122
/// <param name="capabilities">The <see cref="ICapabilities"/> object containing the desired
127
123
/// capabilities of this FirefoxDriver.</param>
124
+
[Obsolete("FirefoxDriver should not be constructed with a raw ICapabilities or DesiredCapabilities object. Use FirefoxOptions instead. This constructor will be removed before the 3.0 release.")]
@@ -137,8 +134,9 @@ public FirefoxDriver(ICapabilities capabilities)
137
134
/// environmental settings used when running Firefox.</param>
138
135
/// <param name="profile">A <see cref="FirefoxProfile"/> object representing the profile settings
139
136
/// to be used in starting Firefox.</param>
137
+
[Obsolete("FirefoxDriver should not be constructed with a FirefoxBinary object. Use FirefoxOptions instead. This constructor will be removed before the 3.0 release.")]
@@ -150,8 +148,9 @@ public FirefoxDriver(FirefoxBinary binary, FirefoxProfile profile)
150
148
/// <param name="profile">A <see cref="FirefoxProfile"/> object representing the profile settings
151
149
/// to be used in starting Firefox.</param>
152
150
/// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
151
+
[Obsolete("FirefoxDriver should not be constructed with a FirefoxBinary object. Use FirefoxOptions instead. This constructor will be removed before the 3.0 release.")]
stringmessage=string.Format(CultureInfo.InvariantCulture,"There is already an option for the {0} capability. Please use that instead.",capabilityName);
0 commit comments