@@ -61,7 +61,7 @@ public class FirefoxOptions : DriverOptions
61
61
private const string FirefoxEnableDevToolsProtocolCapability = "moz:debuggerAddress" ;
62
62
63
63
private bool enableDevToolsProtocol ;
64
- private string browserBinaryLocation ;
64
+ private string binaryLocation ;
65
65
private FirefoxDriverLogLevel logLevel = FirefoxDriverLogLevel . Default ;
66
66
private FirefoxProfile profile ;
67
67
private List < string > firefoxArguments = new List < string > ( ) ;
@@ -104,17 +104,18 @@ public FirefoxProfile Profile
104
104
/// </summary>
105
105
public override string BinaryLocation
106
106
{
107
- get { return this . browserBinaryLocation ; }
108
- set { this . browserBinaryLocation = value ; }
107
+ get { return this . binaryLocation ; }
108
+ set { this . binaryLocation = value ; }
109
109
}
110
110
111
111
/// <summary>
112
112
/// Gets or sets the path and file name of the Firefox browser executable.
113
113
/// </summary>
114
+ [ Obsolete ( "Use BinaryLocation property instead of BrowserExecutableLocation. This one will be removed soon." ) ]
114
115
public string BrowserExecutableLocation
115
116
{
116
- get { return this . browserBinaryLocation ; }
117
- set { this . browserBinaryLocation = value ; }
117
+ get { return this . binaryLocation ; }
118
+ set { this . binaryLocation = value ; }
118
119
}
119
120
120
121
/// <summary>
@@ -302,9 +303,9 @@ private Dictionary<string, object> GenerateFirefoxOptionsDictionary()
302
303
firefoxOptions [ FirefoxProfileCapability ] = this . profile . ToBase64String ( ) ;
303
304
}
304
305
305
- if ( ! string . IsNullOrEmpty ( this . browserBinaryLocation ) )
306
+ if ( ! string . IsNullOrEmpty ( this . binaryLocation ) )
306
307
{
307
- firefoxOptions [ FirefoxBinaryCapability ] = this . browserBinaryLocation ;
308
+ firefoxOptions [ FirefoxBinaryCapability ] = this . binaryLocation ;
308
309
}
309
310
310
311
if ( this . logLevel != FirefoxDriverLogLevel . Default )
0 commit comments