Table of Contents

Class ElementNotFoundException

Namespace
Bunit
Assembly
Bunit.Web.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(SerializationInfo, StreamingContext)

Initializes a new instance of the ElementNotFoundException class.

protected ElementNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext)

Parameters

serializationInfo SerializationInfo
streamingContext StreamingContext

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

Methods

GetObjectData(SerializationInfo, StreamingContext)

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.