public void cancel() {
        WebElement cancelIcon = getCancelIcon();
        if (isCancelAjaxified() || isRatingAjaxified()) {
            PrimeSelenium.guardAjax(cancelIcon).click();
        }
        else {
            cancelIcon.click();
        }

    }
Resets the rating so that no stars are selected using the cancel icon.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/Rating.java