Table of Contents

Class CommandResponseTypeMap

Namespace
OpenQA.Selenium.DevTools
Assembly
WebDriver.dll

Class that maps a DevTools Protocol command's type to the type of object returned by the command.

public class CommandResponseTypeMap
Inheritance
CommandResponseTypeMap
Inherited Members

Methods

AddCommandResponseType(Type, Type)

Adds mapping to a response type for a specified command type.

public void AddCommandResponseType(Type commandSettingsType, Type commandResponseType)

Parameters

commandSettingsType Type

The type of command to add the mapping for.

commandResponseType Type

The type of response object corresponding to the command.

TryGetCommandResponseType(ICommand, out Type)

Gets the command response type corresponding to the specified command type.

public bool TryGetCommandResponseType(ICommand command, out Type commandResponseType)

Parameters

command ICommand

The type of command for which to retrieve the response type.

commandResponseType Type

The returned response type.

Returns

bool

true if the specified command type has a mapped response type; otherwise, false.

TryGetCommandResponseType<T>(out Type)

Gets the command response type corresponding to the specified command type.

public bool TryGetCommandResponseType<T>(out Type commandResponseType) where T : ICommand

Parameters

commandResponseType Type

The returned response type.

Returns

bool

true if the specified command type has a mapped response type; otherwise, false.

Type Parameters

T

The type of command for which to retrieve the response type.