Table of Contents

Interface ITextComponent

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

Provides the functionalities of a text component.

[AbstractionComponent("text")]
public interface ITextComponent : IAutomationComponent
Inherited Members

Properties

Text

Gets the text value of the component.

string Text { get; }

Property Value

string

Methods

WaitUntilTextEquals(string, CompareOptions, int, int)

Waits until the text match a specific value (the match can be made case insensitive).

void WaitUntilTextEquals(string expected, CompareOptions compareOptions, int timeout = 15000, int sleepInterval = 200)

Parameters

expected string

The expected text to compare (string).

compareOptions CompareOptions

Options to pass to the C# String.Compare method (e.g. CompareOptions.IgnoreCase).

timeout int

The timeout value in milliseconds indicating how long to wait.

sleepInterval int

The time in milliseconds indicating how often to check for the match.

Remarks

The C# String.Compare method is using CultureInfo.InvariantCulture. This is not configurable.

Exceptions

AutomationException

Throws when the text has no match after the time limit.

WaitUntilTextEquals(string, int, int)

Waits until the text match exactly a specific value.

void WaitUntilTextEquals(string expected, int timeout = 15000, int sleepInterval = 200)

Parameters

expected string

The expected text to compare (string).

timeout int

The timeout value in milliseconds indicating how long to wait.

sleepInterval int

The time in milliseconds indicating how often to check for the match.

Remarks

The C# String.Compare method is using CultureInfo.InvariantCulture. This is not configurable.

Exceptions

AutomationException

Throws when the text has no match after the time limit.

WaitUntilTextIsMatch(string, int, int)

Waits until the text match a specific pattern.

void WaitUntilTextIsMatch(string pattern, int timeout = 15000, int sleepInterval = 200)

Parameters

pattern string

The expected pattern to match (regular expression).

timeout int

The timeout value in milliseconds indicating how long to wait.

sleepInterval int

The time in milliseconds indicating how often to check for the match.

Exceptions

AutomationException

Throws when the text has no match after the time limit.