Table of Contents

Class SetBreakpointByUrlCommandSettings

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

Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads.

public sealed class SetBreakpointByUrlCommandSettings : ICommand
Inheritance
SetBreakpointByUrlCommandSettings
Implements
Inherited Members

Properties

ColumnNumber

Offset in the line to set breakpoint at.

[JsonPropertyName("columnNumber")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ColumnNumber { get; set; }

Property Value

long?

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Condition

Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.

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

Property Value

string

LineNumber

Line number to set breakpoint at.

[JsonPropertyName("lineNumber")]
public long LineNumber { get; set; }

Property Value

long

ScriptHash

Script hash of the resources to set breakpoint on.

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

Property Value

string

Url

URL of the resources to set breakpoint on.

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

Property Value

string

UrlRegex

Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified.

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

Property Value

string