Table of Contents

Interface IDevTools

Namespace
OpenQA.Selenium.DevTools
Assembly
WebDriver.dll

Interface indicating the driver supports the Chrome DevTools Protocol.

public interface IDevTools

Properties

HasActiveDevToolsSession

Gets a value indicating whether a DevTools session is active.

bool HasActiveDevToolsSession { get; }

Property Value

bool

Methods

CloseDevToolsSession()

Closes a DevTools session

void CloseDevToolsSession()

GetDevToolsSession()

Creates a session to communicate with a browser using a Developer Tools debugging protocol.

DevToolsSession GetDevToolsSession()

Returns

DevToolsSession

The active session to use to communicate with the Developer Tools debugging protocol.

GetDevToolsSession(DevToolsOptions)

Creates a session to communicate with a browser using a specific version of the Developer Tools debugging protocol.

DevToolsSession GetDevToolsSession(DevToolsOptions options)

Parameters

options DevToolsOptions

The options for the DevToolsSession to use.

Returns

DevToolsSession

The active session to use to communicate with the Developer Tools debugging protocol.

GetDevToolsSession(int)

Creates a session to communicate with a browser using a specific version of the Developer Tools debugging protocol.

[Obsolete("Use GetDevToolsSession(DevToolsOptions options)")]
DevToolsSession GetDevToolsSession(int protocolVersion)

Parameters

protocolVersion int

The specific version of the Developer Tools debugging protocol to use.

Returns

DevToolsSession

The active session to use to communicate with the Developer Tools debugging protocol.