-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#133: open a HTML snippet with WebDriver
- Loading branch information
Marcel Pfotenhauer
committed
Aug 20, 2020
1 parent
d42b51a
commit 689636d
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please use try-with-resources to ensure that the writer is always closed. Alternatively, use
FileUtils
provided by Apache Commons library.Another approach to open some HTML snippet in a browser is to encode the snippet to base64 and open it as data URI. This way you would avoid file I/O completely.