TextToBePresentInElement(By, String) Method

Definition

Assembly HeadlessTestingFramework.dll

An expectation for checking that an element's text contains the specified text.

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

Parameters

locator
By

The locator to find the element.

text
String

The text to search for.

Returns

Func<AvaloniaDriver, Boolean>
True when the text is present.