@Override
    public void setValue(Serializable value) {
        if (value == null) {
            value = "\"\"";
        }

        PrimeSelenium.executeScript(getWidgetByIdScript() + ".setValue('" + value.toString() + "');");
    }
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