(String content)
| 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 | } |
no test coverage detected