public void selectNext() {
        int activeIndex = getOptions().indexOf(getActiveOption());
        int nextIndex = activeIndex + 1;

        if (nextIndex >= getOptions().size()) {
            nextIndex = 0;
        }

        select(nextIndex);
    }
Component wrapper for the PrimeFaces {@code p:selectOneButton}.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/SelectOneButton.java