Package io.fluentlenium.core
Class FluentDriverHtmlDumper
java.lang.Object
io.fluentlenium.core.FluentDriverHtmlDumper
Takes HTML dump.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
takeHtmlDump
(String fileName, Supplier<String> htmlSupplier) Dumps the HTML provided by the html supplier to a file.
-
Constructor Details
-
FluentDriverHtmlDumper
-
-
Method Details
-
takeHtmlDump
Dumps the HTML provided by the html supplier to a file.If the configuration is set with an html dump path, the argument file name will be concatenated to that, creating the destination file path, otherwise the destination file will be the argument file name.
If an error occurs during taking the HTML dump, the dump file is still created, but it will contain a message that HTML dump could not be taken.
- Parameters:
fileName
- the file name to dump the HTML tohtmlSupplier
- provides the HTML snippet that should be dumped- Throws:
RuntimeException
- when an error occurs during dumping HTML
-