TextToBe(By, String) Method

Definition

Assembly HeadlessTestingFramework.dll

An expectation for checking that an element's text matches exactly.

public static Func<AvaloniaDriver, bool> TextToBe(By locator, string text)

Parameters

locator
By

The locator to find the element.

text
String

The expected text.

Returns

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