public String getWidgetByIdScript() {
        return ComponentUtils.getWidgetByIdScript(getId());
    }
Gets the widget by component id JS function.

@return the JS script
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/base/AbstractComponent.java