Selenium Webdriver (Java) Bootstrap dropdown menu access
For starters, you can get a specific dropdown by index:
List<WebElement> menus = driver.findElements(By.cssSelector("div#navbar ul li.dropdown"));WebElement desiredMenu = menus.get(0);desiredMenu.click();
Then, you'll have multiple ways to locate the menu options. For instance, by text:
WebElement choice1 = desiredMenu.findElement(By.linkText("Choice 1"));choice1.click();