public Number getValue() {
        return PrimeSelenium.executeScript("return " + getWidgetByIdScript() + ".getValue();");
    }
Finds the current rating, i.e. the number of stars selected.

@return The current rating value.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/Rating.java