MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / CreateTempFile

Method CreateTempFile

dotnet/test/webdriver/UploadTests.cs:125–136  ·  view source on GitHub ↗
(string content)

Source from the content-addressed store, hash-verified

123 }
124
125 private void CreateTempFile(string content)
126 {
127 string testFileName = System.IO.Path.Combine(EnvironmentManager.Instance.CurrentDirectory, "webdriver.tmp");
128 testFile = new System.IO.FileInfo(testFileName);
129 if (testFile.Exists)
130 {
131 testFile.Delete();
132 }
133 System.IO.StreamWriter testFileWriter = testFile.CreateText();
134 testFileWriter.WriteLine(content);
135 testFileWriter.Close();
136 }
137}

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected