Table of Contents

Interface IWebDescriber

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

Indicates that the test object supports describing its child test object with advanced web filters.

public interface IWebDescriber : ITestObjectDescriber
Inherited Members

Methods

Describe<TChild>(CSSDescription)

Describes a child test object using the provided CSS selector.

TChild Describe<TChild>(CSSDescription cssSelector) where TChild : class, IWebElement

Parameters

cssSelector CSSDescription

The CSS selector query used to find the child test object.

Returns

TChild

The requested child test object with its description.

Type Parameters

TChild

The child test object type.

Remarks

The current instance test object is the parent of the returned test object. This test object is searched for only when an operation on this test object is invoked. This means that if the test object is not found in the application, this command will still succeed. In this case, an exception is thrown only when an operation is invoked.

Describe<TChild>(XPathDescription)

Describes a child test object using the provided XPath.

TChild Describe<TChild>(XPathDescription xpath) where TChild : class, IWebElement

Parameters

xpath XPathDescription

The XPath used to find the child test object.

Returns

TChild

The requested child test object with its description.

Type Parameters

TChild

The child test object type.

Remarks

The current instance test object is the parent of the returned test object. This test object is searched for only when an operation on this test object is invoked. This means that if the test object is not found in the application, this command will still succeed. In this case, an exception is thrown only when an operation is invoked.