Class ContentComponentExtensions
- Namespace
- GroupeIsa.Neos.EndToEndTests.UI.Extensions
- Assembly
- GroupeIsa.Neos.EndToEndTests.UI.dll
Provides a set of extensions methods for the IContentComponent class.
[ExcludeFromCodeCoverage(Justification = "Automation Library")]
public static class ContentComponentExtensions
- Inheritance
-
ContentComponentExtensions
- Inherited Members
Methods
FindComponentByPropertyName<TComponent>(IContentComponent, string, bool)
Finds a component by property name attribute, or returns null if the component is absent.
Use it for fields whose visibility depends on the application configuration; anchor on an
always-visible field first so that an absent component is not confused with a form still loading.
public static TComponent? FindComponentByPropertyName<TComponent>(this IContentComponent content, string propertyName, bool waitForComponent = true) where TComponent : IAutomationComponent
Parameters
contentIContentComponentThe content.
propertyNamestringThe property name.
waitForComponentboolA value indicating whether the presence of component should be waited.
Returns
- TComponent
The component found or
null.
Type Parameters
TComponentThe component type.
GetComponentByPropertyName<TComponent>(IContentComponent, string)
Gets a component by property name attribute.
public static TComponent GetComponentByPropertyName<TComponent>(this IContentComponent content, string propertyName) where TComponent : IAutomationComponent
Parameters
contentIContentComponentThe content.
propertyNamestringThe property name.
Returns
- TComponent
The component found.
Type Parameters
TComponentThe component type.
SetFormFieldText(IContentComponent, string, string)
Sets text in form field.
public static void SetFormFieldText(this IContentComponent content, string propertyName, string keys)
Parameters
contentIContentComponentThe content.
propertyNamestringThe property name.
keysstringText to keys.