Skip to content

Commit 10cce84

Browse files
committed
Fixing test temp file writing for .NET
1 parent 184f8a1 commit 10cce84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dotnet/test/remote/RemoteWebDriverSpecificTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
using System;
1+
using System;
2+
using System.Collections.ObjectModel;
3+
using System.Text;
24
using NUnit.Framework;
5+
using OpenQA.Selenium.Environment;
36

47
namespace OpenQA.Selenium.Remote
58
{
@@ -62,7 +65,8 @@ public void ShouldBeAbleToSendFileToRemoteServer()
6265

6366
private void CreateTempFile(string content)
6467
{
65-
testFile = new System.IO.FileInfo("webdriver.tmp");
68+
string testFileName = System.IO.Path.Combine(EnvironmentManager.Instance.CurrentDirectory, "webdriver.tmp");
69+
testFile = new System.IO.FileInfo(testFileName);
6670
if (testFile.Exists)
6771
{
6872
testFile.Delete();

0 commit comments

Comments
 (0)