Class WebComponent

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.dll

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

WebSession

Methods

Component<TComponent>(WebLocator?, string?)

protected TComponent Component<TComponent>(WebLocator? root = null, string? name = null) where TComponent : WebComponent, new()

Parameters

root WebLocator
name string

Returns

TComponent

Type Parameters

TComponent

Components<TComponent>(WebLocator, string?)

protected WebComponentCollection<TComponent> Components<TComponent>(WebLocator items, string? name = null) where TComponent : WebComponent, new()

Parameters

items WebLocator
name string

Returns

WebComponentCollection<TComponent>

Type Parameters

TComponent

Element(WebLocator, string?)

protected WebElement Element(WebLocator locator, string? name = null)

Parameters

locator WebLocator
name string

Returns

WebElement