Table of Contents

Class Scope

Namespace
OpenQA.Selenium.DevTools.V155.Debugger
Assembly
Selenium.WebDriver.dll

Scope description.

public sealed class Scope
Inheritance
Scope
Inherited Members

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.

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

Property Value

bool?

EndLocation

Location in the source code where scope ends

[JsonPropertyName("endLocation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Location? EndLocation { get; set; }

Property Value

Location

Name

name

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

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.

[JsonPropertyName("object")]
public RemoteObject Object { get; set; }

Property Value

RemoteObject

StartLocation

Location in the source code where scope starts

[JsonPropertyName("startLocation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Location? StartLocation { get; set; }

Property Value

Location

Type

Scope type.

[JsonPropertyName("type")]
public ScopeTypeValues Type { get; set; }

Property Value

ScopeTypeValues