xpath //*[@id="ddlTablePay"]
我需要计算此下拉菜单中的选项数量.谢谢
Select se = new Select(driver.findElement(By.id("select drop down locator"))); List<WebElement> l = se.getOptions(); l.size();
-Ajay