GetText

This method is used to get the text of the element.


Syntax :

JAVA:     String elementText = s.GetText("locator");
CSharp:   string elementText = s.GetText("locator");