Class RemoteLogs

java.lang.Object
org.openqa.selenium.remote.RemoteLogs
All Implemented Interfaces:
Logs

@Beta public class RemoteLogs extends Object implements Logs
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public LogEntries get(String logType)
      Description copied from interface: Logs
      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.

      Specified by:
      get in interface Logs
      Parameters:
      logType - The log type.
      Returns:
      Available log entries for the specified log type.
    • getAvailableLogTypes

      public Set<String> getAvailableLogTypes()
      Description copied from interface: Logs
      Queries for available log types.
      Specified by:
      getAvailableLogTypes in interface Logs
      Returns:
      A set of available log types.