Table of Contents

Class Logs

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

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 WebDriver

Instance 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

ReadOnlyCollection<string>

Methods

GetLog(string)

Gets the set of LogEntry objects for a specified log.

public ReadOnlyCollection<LogEntry> GetLog(string logKind)

Parameters

logKind string

The 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.