Table of Contents

Class StackTraceElement

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Gives properties to get a stack trace

public class StackTraceElement
Inheritance
StackTraceElement
Inherited Members

Constructors

StackTraceElement()

Initializes a new instance of the StackTraceElement class.

public StackTraceElement()

StackTraceElement(Dictionary<string, object?>?)

Initializes a new instance of the StackTraceElement class using the given property values.

public StackTraceElement(Dictionary<string, object?>? elementAttributes)

Parameters

elementAttributes Dictionary<string, object>

A Dictionary<TKey, TValue> containing the names and values for the properties of this StackTraceElement.

Properties

ClassName

Gets or sets the value of the Class name in the stack trace

[JsonPropertyName("className")]
public string ClassName { get; set; }

Property Value

string

FileName

Gets or sets the value of the filename in the stack

[JsonPropertyName("fileName")]
public string FileName { get; set; }

Property Value

string

LineNumber

Gets or sets the line number

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

Property Value

int

MethodName

Gets or sets the Method name in the stack trace

[JsonPropertyName("methodName")]
public string MethodName { get; set; }

Property Value

string

Methods

ToString()

Gets a string representation of the object.

public override string ToString()

Returns

string

A string representation of the object.