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
SerializationInfostreamingContext
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
Properties
CssSelector
Gets the CSS selector used to search with.
public string CssSelector { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext