Class HtmlUnitLogs
- java.lang.Object
-
- org.openqa.selenium.htmlunit.logging.HtmlUnitLogs
-
- All Implemented Interfaces:
org.openqa.selenium.logging.Logs
public class HtmlUnitLogs extends Object implements org.openqa.selenium.logging.Logs
Implementation of theLogsinterface 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.HtmlUnitDriverLoggerinstance.- Author:
- Ronald Brill
-
-
Constructor Summary
Constructors Constructor Description HtmlUnitLogs(WebClient webClient)Creates a newHtmlUnitLogsinstance and configures the givenWebClientto use an internalHtmlUnitLogs.HtmlUnitDriverLoggerfor WebConsole log output.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.logging.LogEntriesget(String logType)Set<String>getAvailableLogTypes()
-
-
-
Constructor Detail
-
HtmlUnitLogs
public HtmlUnitLogs(WebClient webClient)
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
-
-