Table of Contents

Class Scope

Namespace
Selenium.WebDriver.BiDi.Cdp.Debugger
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Scope description.

public sealed record Scope : IEquatable<Scope>
Inheritance
Scope
Implements
Inherited Members

Constructors

Scope(string, RemoteObject)

Scope description.

public Scope(string Type, RemoteObject Object)

Parameters

Type string

Scope type.

Object RemoteObject

Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.

Properties

Empty

True if the scope does not declare any variables or have a runtime context. Only present if true. Empty scopes are retained in the scope chain because they can be targeted via evaluateOnCallFrame (using scopeNumber) or matched against scopes in source maps.

public bool? Empty { get; init; }

Property Value

bool?

EndLocation

Location in the source code where scope ends

public Location? EndLocation { get; init; }

Property Value

Location

Name

public string? Name { get; init; }

Property Value

string

Object

Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.

public RemoteObject Object { get; init; }

Property Value

RemoteObject

StartLocation

Location in the source code where scope starts

public Location? StartLocation { get; init; }

Property Value

Location

Type

Scope type.

public string Type { get; init; }

Property Value

string