Interface IElementWrapperFactory
- Namespace
- Bunit.Web.AngleSharp
- Assembly
- Bunit.Web.dll
Represents an AngleSharp.Dom.IElement factory, used by a WrapperBase<TElement>.
public interface IElementWrapperFactory
- Extension Methods
Properties
OnElementReplaced
Subscribe to updates to the wrapped elements.
Action? OnElementReplaced { get; set; }
Property Value
Methods
GetElement<TElement>()
A method that returns the latest version of the element to wrap.
TElement GetElement<TElement>() where TElement : class, IElement
Returns
- TElement
Type Parameters
TElement
Remarks
This method should throw if the element is not found or is not of the correct type (TElement
).