Table of Contents

Class SetAutoAttachCommandSettings

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

Controls whether to automatically attach to new targets which are considered to be directly related to this one (for example, iframes or workers). When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. This also clears all targets added by autoAttachRelated from the list of targets to watch for creation of related targets. You might want to call this recursively for auto-attached targets to attach to all available targets.

public sealed class SetAutoAttachCommandSettings : ICommand
Inheritance
SetAutoAttachCommandSettings
Implements
Inherited Members

Properties

AutoAttach

Whether to auto-attach to related targets.

[JsonPropertyName("autoAttach")]
public bool AutoAttach { get; set; }

Property Value

bool

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Filter

Only targets matching filter will be attached.

[JsonPropertyName("filter")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public object[]? Filter { get; set; }

Property Value

object[]

Flatten

Enables "flat" access to the session via specifying sessionId attribute in the commands. We plan to make this the default, deprecate non-flattened mode, and eventually retire it. See crbug.com/991325.

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

Property Value

bool?

WaitForDebuggerOnStart

Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger to run paused targets.

[JsonPropertyName("waitForDebuggerOnStart")]
public bool WaitForDebuggerOnStart { get; set; }

Property Value

bool