File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
examples/dotnet/SeleniumDocs/Browsers Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,10 @@ public void SetBinary()
5656 }
5757
5858 [ TestMethod ]
59- [ Ignore ( "Not implemented" ) ]
6059 public void LogsToFile ( )
6160 {
6261 var service = FirefoxDriverService . CreateDefaultService ( ) ;
63- // service.LogFile = _logLocation
62+ service . LogPath = GetLogLocation ( ) ;
6463
6564 driver = new FirefoxDriver ( service ) ;
6665 var lines = File . ReadLines ( GetLogLocation ( ) ) ;
@@ -85,12 +84,10 @@ public void LogsToConsole()
8584 }
8685
8786 [ TestMethod ]
88- [ Ignore ( "You can set it, just can't see it" ) ]
8987 public void LogsLevel ( )
9088 {
9189 var service = FirefoxDriverService . CreateDefaultService ( ) ;
92- //service.LogFile = _logLocation
93-
90+ service . LogPath = GetLogLocation ( ) ;
9491 service . LogLevel = FirefoxDriverLogLevel . Debug ;
9592
9693 driver = new FirefoxDriver ( service ) ;
@@ -171,7 +168,7 @@ public void InstallUnsignedAddon()
171168
172169 private string GetLogLocation ( )
173170 {
174- if ( _logLocation != null && ! File . Exists ( _logLocation ) )
171+ if ( string . IsNullOrEmpty ( _logLocation ) && ! File . Exists ( _logLocation ) )
175172 {
176173 _logLocation = Path . GetTempFileName ( ) ;
177174 }
You can’t perform that action at this time.
0 commit comments