Package org.openqa.selenium.logging
Interface Logs
- All Known Implementing Classes:
LocalLogs
,RemoteLogs
Interface for providing logs.
-
Method Summary
Modifier and TypeMethodDescriptionFetches available log entries for the given log type.Queries for available log types.
-
Method Details
-
get
Fetches available log entries for the given log type.Note that log buffers are reset after each call, meaning that available log entries correspond to those entries not yet returned for a given log type. In practice, this means that this call will return the available log entries since the last call, or from the start of the session.
For more info on enabling logging, look at
LoggingPreferences
.- Parameters:
logType
- The log type.- Returns:
- Available log entries for the specified log type.
-
getAvailableLogTypes
Queries for available log types.- Returns:
- A set of available log types.
-