Table of Contents

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

content IContentComponent

The content.

propertyName string

The property name.

waitForComponent bool

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

Returns

TComponent

The component found or null.

Type Parameters

TComponent

The 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

content IContentComponent

The content.

propertyName string

The property name.

Returns

TComponent

The component found.

Type Parameters

TComponent

The component type.

SetFormFieldText(IContentComponent, string, string)

Sets text in form field.

public static void SetFormFieldText(this IContentComponent content, string propertyName, string keys)

Parameters

content IContentComponent

The content.

propertyName string

The property name.

keys string

Text to keys.