Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions dotnet/src/webdriver/Firefox/FirefoxOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class FirefoxOptions : DriverOptions
private const string FirefoxEnableDevToolsProtocolCapability = "moz:debuggerAddress";

private bool enableDevToolsProtocol;
private string browserBinaryLocation;
private string binaryLocation;
private FirefoxDriverLogLevel logLevel = FirefoxDriverLogLevel.Default;
private FirefoxProfile profile;
private List<string> firefoxArguments = new List<string>();
Expand Down Expand Up @@ -104,17 +104,18 @@ public FirefoxProfile Profile
/// </summary>
public override string BinaryLocation
{
get { return this.browserBinaryLocation; }
set { this.browserBinaryLocation = value; }
get { return this.binaryLocation; }
set { this.binaryLocation = value; }
}

/// <summary>
/// Gets or sets the path and file name of the Firefox browser executable.
/// </summary>
[Obsolete("Use BinaryLocation property instead of BrowserExecutableLocation. This one will be removed soon.")]
public string BrowserExecutableLocation
{
get { return this.browserBinaryLocation; }
set { this.browserBinaryLocation = value; }
get { return this.binaryLocation; }
set { this.binaryLocation = value; }
}

/// <summary>
Expand Down Expand Up @@ -302,9 +303,9 @@ private Dictionary<string, object> GenerateFirefoxOptionsDictionary()
firefoxOptions[FirefoxProfileCapability] = this.profile.ToBase64String();
}

if (!string.IsNullOrEmpty(this.browserBinaryLocation))
if (!string.IsNullOrEmpty(this.binaryLocation))
{
firefoxOptions[FirefoxBinaryCapability] = this.browserBinaryLocation;
firefoxOptions[FirefoxBinaryCapability] = this.binaryLocation;
}

if (this.logLevel != FirefoxDriverLogLevel.Default)
Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/common/Environment/DriverFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public IWebDriver CreateDriverWithOptions(Type driverType, DriverOptions driverO
service = CreateService<FirefoxDriverService>();
if (!string.IsNullOrEmpty(this.browserBinaryLocation))
{
((FirefoxOptions)options).BrowserExecutableLocation = this.browserBinaryLocation;
((FirefoxOptions)options).BinaryLocation = this.browserBinaryLocation;
}
if (enableLogging)
{
Expand Down