text.test.text

getText(id).test.text( string )

or getText(id).test.text( /RegExp/ ) (since beta 0.3)

Tests whether the text matches the string (identical, case-sensitive) or the regular expression.