LoadableComponentT ClassWebDriver
Represents any abstraction of something that can be loaded. This may be an entire web page, or simply a component within that page (such as a login box or menu) or even a service.
Inheritance Hierarchy


Namespace: OpenQA.Selenium.Support.UI
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0

public abstract class LoadableComponent<T> : ILoadableComponent
where T : LoadableComponent<T>

Type Parameters

The type to be returned (normally the subclass' type)

The LoadableComponentT type exposes the following members.


Protected methodLoadableComponentT
Initializes a new instance of the LoadableComponentT class

Protected propertyIsLoaded
Gets a value indicating whether the component is fully loaded.
Public propertyUnableToLoadMessage
Gets or sets the message for the exception thrown when a component cannot be loaded

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodEvaluateLoadedStatus
Determine whether or not the component is loaded. Subclasses are expected to provide the details to determine if the page or component is loaded.
Protected methodExecuteLoad
When this method returns, the component modeled by the subclass should be fully loaded. This subclass is expected to navigate to an appropriate page or trigger loading the correct HTML should this be necessary.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleLoadError
HandleLoadError gives a subclass the opportunity to handle a WebDriverException that occurred during the execution of ExecuteLoad.
Public methodLoad
Ensure that the component is currently loaded.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Protected methodTryLoad
Attempts to load this component, providing an opportunity for the user to handle any errors encountered during the load process.

After the Load method is called, the component will be loaded and ready for use. Overload the protected Load and IsLoaded members to both load a component and determine if the component is already loaded.

The expected usage is:

new HypotheticalComponent().Load();

See Also