Table of Contents

Interface IContentComponent

Namespace
GroupeIsa.Neos.EndToEndTests.UI.Components
Assembly
GroupeIsa.Neos.EndToEndTests.UI.dll

Provides the functionalities of a component that contains other components for automation.

public interface IContentComponent : IAutomationComponent
Inherited Members
Extension Methods

Methods

FindComponentById<TComponent>(string, bool)

Find the component with a specific automation:id directive value and whose type is TComponent.

TComponent? FindComponentById<TComponent>(string automationId, bool waitForComponent = true) where TComponent : IAutomationComponent

Parameters

automationId string

The value of the automation:id directive.

waitForComponent bool

A value indicating whether the presence of component should be waited.

Returns

TComponent

The first component or null if no component was found.

Type Parameters

TComponent

The composant type.

Remarks

The returned component is either the component itself or one of these descendants.

FindComponent<TComponent>(Func<XElement, bool>?, bool)

Finds the component whose type is TComponent. By default, the presence of the component is waited.

TComponent? FindComponent<TComponent>(Func<XElement, bool>? predicate = null, bool waitForComponent = true) where TComponent : IAutomationComponent

Parameters

predicate Func<XElement, bool>

A function to uniquely identify the xml element.

waitForComponent bool

A value indicating whether the presence of component should be waited.

Returns

TComponent

The first component or null if no component was found.

Type Parameters

TComponent

The composant type.

Remarks

The returned component is either the component itself or one of these descendants.

GetComponentById<TComponent>(string)

Gets the component with a specific automation:id directive value and whose type is TComponent.

TComponent GetComponentById<TComponent>(string automationId) where TComponent : IAutomationComponent

Parameters

automationId string

The value of the automation:id directive.

Returns

TComponent

The first component.

Type Parameters

TComponent

The composant type.

Remarks

The returned component is either the component itself or one of these descendants.

Exceptions

AutomationException

No component was found.

GetComponent<TComponent>(Func<XElement, bool>?)

Gets the component whose type is TComponent.

TComponent GetComponent<TComponent>(Func<XElement, bool>? predicate = null) where TComponent : IAutomationComponent

Parameters

predicate Func<XElement, bool>

A function to uniquely identify the xml element.

Returns

TComponent

The first component.

Type Parameters

TComponent

The composant type.

Remarks

The returned component is either the component itself or one of these descendants.

Exceptions

AutomationException

No component was found.

GetComponents(Func<XElement, bool>?)

Gets all children components.

IEnumerable<IAutomationComponent> GetComponents(Func<XElement, bool>? predicate = null)

Parameters

predicate Func<XElement, bool>

A function to test each elements.

Returns

IEnumerable<IAutomationComponent>

All children components.

GetComponents<TComponent>(Func<XElement, bool>?)

Gets all children components.

IEnumerable<TComponent> GetComponents<TComponent>(Func<XElement, bool>? predicate = null) where TComponent : IAutomationComponent

Parameters

predicate Func<XElement, bool>

A function to test each elements.

Returns

IEnumerable<TComponent>

All children components.

Type Parameters

TComponent

The composant type.