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

Method createTmpFile

java/test/org/openqa/selenium/UploadTest.java:184–193  ·  view source on GitHub ↗
(String content)

Source from the content-addressed store, hash-verified

182 }
183
184 private File createTmpFile(String content) {
185 try {
186 File f = File.createTempFile("webdriver", "tmp");
187 f.deleteOnExit();
188 Files.writeString(f.toPath(), content);
189 return f;
190 } catch (IOException e) {
191 throw new UncheckedIOException(e);
192 }
193 }
194}

Callers 1

setUpMethod · 0.95

Calls 2

createTempFileMethod · 0.80
writeStringMethod · 0.80

Tested by

no test coverage detected