@Override
    public void clear() {
        PrimeSelenium.executeScript(getWidgetByIdScript() + ".clear();");
    }
Clears the entire text of the editor.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/TextEditor.java