public WebElement selectMenuitemByValue(WebElement parentElt, String value) {
        WebElement elt = findMenuitemByValue(parentElt, value);

        if ((PrimeSelenium.hasCssClass(elt, "ui-menu-parent")) && isToggleEventHover()) {
            Actions actions = new Actions(getWebDriver());
            actions.moveToElement(elt).build().perform();
        }
        else {
            WebElement eltA = elt.findElement(By.xpath("./a"));
            if (isAjaxified(eltA, "onclick")) {
                PrimeSelenium.guardAjax(elt).click();
            }
            else {
                elt.click();
            }
            // some more cases?
        }

        return  elt;
    }
Select L2+ menuitem
@param parentElt parent menuitem
@param value
@return
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/Menubar.java