// Find the submenu item (e.g., "App Configuration") and click it
By locator = By.xpath("(//a[contains(@href,'/docs/configuration')])[1]");
WebElement config = webdriver.findElement(locator);
config.click();