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
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
stringThe expected text to compare (string).
compareOptions
CompareOptionsOptions to pass to the C#
String.Compare
method (e.g.CompareOptions.IgnoreCase
).timeout
intThe timeout value in milliseconds indicating how long to wait.
sleepInterval
intThe 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
stringThe expected text to compare (string).
timeout
intThe timeout value in milliseconds indicating how long to wait.
sleepInterval
intThe 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
stringThe expected pattern to match (regular expression).
timeout
intThe timeout value in milliseconds indicating how long to wait.
sleepInterval
intThe time in milliseconds indicating how often to check for the match.
Exceptions
- AutomationException
Throws when the text has no match after the time limit.