ForTextPresent(By, String, Nullable) Method

Definition

Assembly HeadlessTestingFramework.dll

Waits for text to be present in an element.

public bool ForTextPresent(By by, string text, TimeSpan? timeout = default(TimeSpan? ))

Parameters

by
By

The locator.

text
String

The text to wait for.

timeout
Nullable<TimeSpan>

Optional custom timeout.

Returns

Boolean
True when text is present.