public String getEditorValue() {
        return PrimeSelenium.executeScript("return " + getWidgetByIdScript() + ".getEditorValue();");
    }
Finds an returns the current contents of the editor.

@return The current contents of the editor, as an HTML string.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/TextEditor.java