Class HtmlUnitLogs
java.lang.Object
org.openqa.selenium.htmlunit.logging.HtmlUnitLogs
- All Implemented Interfaces:
org.openqa.selenium.logging.Logs
Implementation of the
Logs interface for HtmlUnit-based drivers.
This class provides access to logging information produced by HtmlUnit’s
WebConsole and exposes it through the standard WebDriver logging API.
Log entries recorded by the browser are captured by an internal
HtmlUnitLogs.HtmlUnitDriverLogger instance.
- Author:
- Ronald Brill
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlUnitLogs(WebClient webClient) Creates a newHtmlUnitLogsinstance and configures the givenWebClientto use an internalHtmlUnitLogs.HtmlUnitDriverLoggerfor WebConsole log output. -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.logging.LogEntries
-
Constructor Details
-
HtmlUnitLogs
Creates a newHtmlUnitLogsinstance and configures the givenWebClientto use an internalHtmlUnitLogs.HtmlUnitDriverLoggerfor WebConsole log output.- Parameters:
webClient- the HtmlUnit client whose WebConsole logger will be replaced with anHtmlUnitLogs.HtmlUnitDriverLogger; must not benull
-
-
Method Details
-
get
- Specified by:
getin interfaceorg.openqa.selenium.logging.Logs
-
getAvailableLogTypes
- Specified by:
getAvailableLogTypesin interfaceorg.openqa.selenium.logging.Logs
-