Table of Contents

Interface ILoadableComponent

Namespace
OpenQA.Selenium.Support.UI
Assembly
WebDriver.Support.dll

Interface allows for the component to be used in Nested Component scenarios such that the child component class does not have to declare the generic type of the parent explicitly.

public interface ILoadableComponent

Examples

public class HypotheticalLoadableComponent : LoadableComponent<T> { ILoadableComponent parent; public HypotheticalLoadableComponent(ILoadableComponent parent) { this.parent = parent; } protected void EvaluateLoadedStatus() { //code to determine loaded state } protected void ExecuteLoad() { parent.Load(); //loads the parent //code to load this component } }

Methods

Load()

Loads the component.

ILoadableComponent Load()

Returns

ILoadableComponent

A reference to this ILoadableComponent.