Question: how to select div dropdown in selenium?
Answer: Select gender = new Select(driver. findElement(By. xpath("//*[@id=\"offenderListView\"]/div/div[1]/ul/form/div[2]/span/button"))); gender. selectByVisibleText("Male");