📜  在 selenium java 代码示例中选择

📅  最后修改于: 2022-03-11 14:52:22.451000             🧑  作者: Mango

代码示例1
// 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");