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 20
20
using OpenQA . Selenium . Internal ;
21
21
using System ;
22
22
using System . IO ;
23
- using System . Net ;
24
- using System . Net . Http ;
25
23
using System . Text ;
26
- using System . Threading . Tasks ;
27
24
28
25
namespace OpenQA . Selenium . Safari ;
29
26
@@ -34,6 +31,13 @@ public sealed class SafariDriverService : DriverService
34
31
{
35
32
private const string DefaultSafariDriverServiceExecutableName = "safaridriver" ;
36
33
34
+ /// <summary>
35
+ /// Enable diagnose logging.
36
+ /// When set to <see langword="true"/>, the <b>SafariDriver</b> will be started with the <i>--diagnose</i> flag.
37
+ /// Logs will be written to <i>~/Library/Logs/com.apple.WebDriver/</i>.
38
+ /// </summary>
39
+ public bool ? Diagnose { get ; set ; }
40
+
37
41
/// <summary>
38
42
/// Initializes a new instance of the <see cref="SafariDriverService"/> class.
39
43
/// </summary>
@@ -59,6 +63,12 @@ protected override string CommandLineArguments
59
63
get
60
64
{
61
65
StringBuilder argsBuilder = new StringBuilder ( base . CommandLineArguments ) ;
66
+
67
+ if ( this . Diagnose is true )
68
+ {
69
+ argsBuilder . Append ( " --diagnose" ) ;
70
+ }
71
+
62
72
return argsBuilder . ToString ( ) ;
63
73
}
64
74
}
You can’t perform that action at this time.
0 commit comments