Table of Contents

Class ExposeDevToolsProtocolCommandSettings

Namespace
OpenQA.Selenium.DevTools.V147.Target
Assembly
Selenium.WebDriver.dll

Inject object to the target's main frame that provides a communication channel with browser target.

Injected object will be available as window[bindingName].

The object has the following API:

  • binding.send(json) - a method to send messages over the remote debugging protocol
  • binding.onmessage = json => handleMessage(json) - a callback that will be called for the protocol notifications and command responses.
public sealed class ExposeDevToolsProtocolCommandSettings : ICommand
Inheritance
ExposeDevToolsProtocolCommandSettings
Implements
Inherited Members

Properties

BindingName

Binding name, 'cdp' if not specified.

[JsonPropertyName("bindingName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? BindingName { get; set; }

Property Value

string

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

InheritPermissions

If true, inherits the current root session's permissions (default: false).

[JsonPropertyName("inheritPermissions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? InheritPermissions { get; set; }

Property Value

bool?

TargetId

Gets or sets the targetId

[JsonPropertyName("targetId")]
public string TargetId { get; set; }

Property Value

string