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
automationIdstringThe value of the automation:id directive.
waitForComponentboolA value indicating whether the presence of component should be waited.
Returns
- TComponent
The first component or
nullif no component was found.
Type Parameters
TComponentThe 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
predicateFunc<XElement, bool>A function to uniquely identify the xml element.
waitForComponentboolA value indicating whether the presence of component should be waited.
Returns
- TComponent
The first component or
nullif no component was found.
Type Parameters
TComponentThe 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
automationIdstringThe value of the automation:id directive.
Returns
- TComponent
The first component.
Type Parameters
TComponentThe 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
Returns
- TComponent
The first component.
Type Parameters
TComponentThe 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
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
Returns
- IEnumerable<TComponent>
All children components.
Type Parameters
TComponentThe composant type.