An NDoc Documented Class Library

ISelenium.GetText Method 

Gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user.

string GetText(
   string locator
);

Parameters

locator
an element locator

Return Value

the text of the element

See Also

ISelenium Interface | Selenium Namespace