Skip to content

Commit 59e57cf

Browse files
committed
[dotnet] Do not specify a default location for drivers in tests
Can use DriverServiceLocation in appconfig.json to specify location This does not affect when using bazel and pin_browsers
1 parent 573eee0 commit 59e57cf

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

dotnet/test/common/Environment/DriverFactory.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,7 @@ public class DriverFactory
2121

2222
public DriverFactory(string driverPath, string browserBinaryLocation)
2323
{
24-
if (string.IsNullOrEmpty(driverPath))
25-
{
26-
this.driverPath = TestContext.CurrentContext.TestDirectory;
27-
}
28-
else
29-
{
30-
this.driverPath = driverPath;
31-
}
32-
24+
this.driverPath = driverPath;
3325
this.browserBinaryLocation = browserBinaryLocation;
3426

3527
this.PopulateServiceTypes();

0 commit comments

Comments
 (0)