基于java,selenium选择下拉框的某一个选项
//打印出所有选项值 Select sel = new Select(driver1.findElement(ById.xpath(".//*[@id='GangManId']"))); List options = sel.getOptions(); for (WebElement option : options) {