Skip to content
Merged
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
25 changes: 25 additions & 0 deletions dotnet/src/webdriver/Firefox/FirefoxDriverService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ protected override DriverOptions GetDefaultDriverOptions()
/// </remarks>
public string? LogPath { get; set; }

/// <summary>
/// Disable truncation of long log lines in GeckoDriver.
/// </summary>
public bool LogNoTruncate { get; set; }

/// <summary>
/// Directory in which GeckoDriver creates profiles.
/// </summary>
public string? ProfileRoot { get; set; }

/// <summary>
/// Gets or sets the level at which log output is displayed.
/// </summary>
Expand Down Expand Up @@ -189,6 +199,21 @@ protected override string CommandLineArguments
argsBuilder.Append(" --jsdebugger");
}

if (this.LogNoTruncate)
{
argsBuilder.Append(" --log-no-truncate");
}

if (!string.IsNullOrEmpty(this.ProfileRoot))
{
if (!Directory.Exists(this.ProfileRoot))
{
throw new ArgumentException($"Profile root directory does not exist: {this.ProfileRoot}", nameof(ProfileRoot));
}

argsBuilder.AppendFormat(CultureInfo.InvariantCulture, " --profile-root \"{0}\"", this.ProfileRoot);
}

return argsBuilder.ToString().Trim();
}
}
Expand Down
Loading