File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
dotnet/src/webdriver/Firefox Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,16 @@ protected override DriverOptions GetDefaultDriverOptions()
103
103
/// </remarks>
104
104
public string ? LogPath { get ; set ; }
105
105
106
+ /// <summary>
107
+ /// Disable truncation of long log lines in GeckoDriver.
108
+ /// </summary>
109
+ public bool LogNoTruncate { get ; set ; }
110
+
111
+ /// <summary>
112
+ /// Directory in which GeckoDriver creates profiles.
113
+ /// </summary>
114
+ public string ? ProfileRoot { get ; set ; }
115
+
106
116
/// <summary>
107
117
/// Gets or sets the level at which log output is displayed.
108
118
/// </summary>
@@ -189,6 +199,21 @@ protected override string CommandLineArguments
189
199
argsBuilder . Append ( " --jsdebugger" ) ;
190
200
}
191
201
202
+ if ( this . LogNoTruncate )
203
+ {
204
+ argsBuilder . Append ( " --log-no-truncate" ) ;
205
+ }
206
+
207
+ if ( ! string . IsNullOrEmpty ( this . ProfileRoot ) )
208
+ {
209
+ if ( ! Directory . Exists ( this . ProfileRoot ) )
210
+ {
211
+ throw new ArgumentException ( $ "Profile root directory does not exist: { this . ProfileRoot } ", nameof ( ProfileRoot ) ) ;
212
+ }
213
+
214
+ argsBuilder . AppendFormat ( CultureInfo . InvariantCulture , " --profile-root \" {0}\" " , this . ProfileRoot ) ;
215
+ }
216
+
192
217
return argsBuilder . ToString ( ) . Trim ( ) ;
193
218
}
194
219
}
You can’t perform that action at this time.
0 commit comments