Skip to content

Commit 8002489

Browse files
committed
Enabling two FF driver tests
1 parent 26617fc commit 8002489

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

examples/dotnet/SeleniumDocs/Browsers/FirefoxTest.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)