File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
dotnet/src/webdriver/Safari Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 2020using OpenQA . Selenium . Internal ;
2121using System ;
2222using System . IO ;
23- using System . Net ;
24- using System . Net . Http ;
2523using System . Text ;
26- using System . Threading . Tasks ;
2724
2825namespace OpenQA . Selenium . Safari ;
2926
@@ -34,6 +31,13 @@ public sealed class SafariDriverService : DriverService
3431{
3532 private const string DefaultSafariDriverServiceExecutableName = "safaridriver" ;
3633
34+ /// <summary>
35+ /// Value to enable diagnose logging.
36+ /// When set to true, the SafariDriver will be started with the --diagnose flag.
37+ /// Logs will be written to ~/Library/Logs/com.apple.WebDriver/
38+ /// </summary>
39+ public bool ? Diagnose { get ; set ; }
40+
3741 /// <summary>
3842 /// Initializes a new instance of the <see cref="SafariDriverService"/> class.
3943 /// </summary>
@@ -59,6 +63,12 @@ protected override string CommandLineArguments
5963 get
6064 {
6165 StringBuilder argsBuilder = new StringBuilder ( base . CommandLineArguments ) ;
66+
67+ if ( this . Diagnose is true )
68+ {
69+ argsBuilder . Append ( " --diagnose" ) ;
70+ }
71+
6272 return argsBuilder . ToString ( ) ;
6373 }
6474 }
You can’t perform that action at this time.
0 commit comments