Preferences

Describes the log preferences for a WebDriver session.

Constructor

new Preferences()

Methods

setLevel(type, level)

Sets the desired logging level for a particular log type.

Parameters:
NameTypeDescription
typestring | Type

The log type.

levelLevel | string | number

The desired log level.

Throws:

if type is not a string.

Type
TypeError

toJSON() → (non-null) {Object.<string, string>}

Converts this instance to its JSON representation.

Returns:

The JSON representation of this set of preferences.

Type: 
Object.<string, string>