Class HtmlPageCaptureService
- java.lang.Object
-
- de.bmiag.tapir.seleniumexecution.service.HtmlPageCaptureService
-
@Component("tapirHtmlPageCaptureService") public class HtmlPageCaptureService extends java.lang.Object
This service can be used to read the currently displayed browser content as HTML code.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description HtmlPageCaptureService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
captureHtmlPage(java.lang.String name)
Reads the currently displayed Html page and sends it as Html attachment to all registered observers.void
captureHtmlPage(java.lang.String name, java.lang.String charsetName)
Reads the currently displayed Html page and sends it as Html attachment to all registered observers.
-
-
-
Method Detail
-
captureHtmlPage
public void captureHtmlPage(java.lang.String name)
Reads the currently displayed Html page and sends it as Html attachment to all registered observers. If the current web driver allows the usage of Javascript, a dynamic rendered version of the page is send as attachment as well. The attachments are encoded in ISO-8859-1.- Parameters:
name
- The name of the attachment.- Since:
- 2.0.0
-
captureHtmlPage
public void captureHtmlPage(java.lang.String name, java.lang.String charsetName)
Reads the currently displayed Html page and sends it as Html attachment to all registered observers. If the current web driver allows the usage of Javascript, a dynamic rendered version of the page is send as attachment as well.- Parameters:
name
- The name of the attachment.charsetName
- The name of the charset to be used for the attachments.- Since:
- 2.0.0
- See Also:
Charset
-
-