Class WebComponent
Base class for lazily scoped, reusable page components.
public abstract class WebComponent
- Inheritance
-
WebComponent
- Derived
- Inherited Members
- Extension Methods
Properties
Web
protected WebSession Web { get; }
Property Value
Methods
Component<TComponent>(WebLocator?, string?)
protected TComponent Component<TComponent>(WebLocator? root = null, string? name = null) where TComponent : WebComponent, new()
Parameters
rootWebLocatornamestring
Returns
- TComponent
Type Parameters
TComponent
Components<TComponent>(WebLocator, string?)
protected WebComponentCollection<TComponent> Components<TComponent>(WebLocator items, string? name = null) where TComponent : WebComponent, new()
Parameters
itemsWebLocatornamestring
Returns
- WebComponentCollection<TComponent>
Type Parameters
TComponent
Element(WebLocator, string?)
protected WebElement Element(WebLocator locator, string? name = null)
Parameters
locatorWebLocatornamestring