how to the text of an element in selenium java code example Example: how to the text of an element in selenium java element.getText()