Class Logs
Provides a mechanism for examining logs for the driver during the test.
public class Logs : ILogs
- Inheritance
-
Logs
- Implements
- Inherited Members
Constructors
Logs(WebDriver)
Initializes a new instance of the Logs class.
public Logs(WebDriver driver)
Parameters
driver
WebDriverInstance of the driver currently in use
Exceptions
- ArgumentNullException
If
driver
is null.
Properties
AvailableLogTypes
Gets the list of available log types for this driver.
public ReadOnlyCollection<string> AvailableLogTypes { get; }
Property Value
Methods
GetLog(string)
Gets the set of LogEntry objects for a specified log.
public ReadOnlyCollection<LogEntry> GetLog(string logKind)
Parameters
logKind
stringThe log for which to retrieve the log entries. Log types can be found in the LogType class.
Returns
- ReadOnlyCollection<LogEntry>
The list of LogEntry objects for the specified log.
Exceptions
- ArgumentNullException
If
logKind
is null.