public void toggleDropdown() {
        if (getPanel().isDisplayed()) {
            hide();
        }
        else {
            show();
        }
    }
Either display the dropdown or select the item it if is already displayed.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/CascadeSelect.java