📅  最后修改于: 2022-03-11 14:52:22.451000             🧑  作者: Mango
// Create object of the Select class
Select se = new Select(driver.findElement(By.xpath("//*[@id='oldSelectMenu']")));
// Select the option with value "6"
se.selectByValue("6");