TextToMatch(By, String) Method

Definition

Assembly HeadlessTestingFramework.dll

An expectation for checking that an element's text matches a regex pattern.

public static Func<AvaloniaDriver, bool> TextToMatch(By locator, string pattern)

Parameters

locator
By

The locator to find the element.

pattern
String

The regex pattern.

Returns

Func<AvaloniaDriver, Boolean>
True when the text matches the pattern.