(string content)
| 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 | } |