Table of Contents

Class ElementNotFoundException

Namespace
Bunit
Assembly
bunit.dll

Represents a failure to find an element in the searched target using a CSS selector.

public class ElementNotFoundException : Exception, ISerializable
Inheritance
ElementNotFoundException
Implements
Derived
Inherited Members
Extension Methods

Constructors

ElementNotFoundException(string)

Initializes a new instance of the ElementNotFoundException class.

public ElementNotFoundException(string cssSelector)

Parameters

cssSelector string

ElementNotFoundException(string, string)

Initializes a new instance of the ElementNotFoundException class.

protected ElementNotFoundException(string message, string cssSelector)

Parameters

message string
cssSelector string

Properties

CssSelector

Gets the CSS selector used to search with.

public string CssSelector { get; }

Property Value

string
.NET Foundation

Supported by the .NET Foundation.