List<WebElement> sectionLis = dropdownMenu.findElements(By.tagName("li"));
System.out.println("Section count: " + sectionLis.size());
for (int i = 0; i < sectionLis.size(); i++) {
// browse all pages
List<WebElement> nextPageLinks = driver.findElements(By.className("next_page"));
if (!nextPageLinks.isEmpty()) {
WebElement nextPageLink = nextPageLinks.get(0);
String visibility = nextPageLink.getCssValue("visibility");
boolean nextPageButtonVisible = !"hidden".equals(visibility);
while (nextPageButtonVisible) {