标签: c# selenium selenium-webdriver webdriver
带有禁用下拉列表的示例图像:
尝试:
formatNoMatches
答案 0 :(得分:0)
WebElement select = driver.findElement(By.xpath("//select[@name='jobName']")); List<WebElement> all_Options = select.findElements(By.tagName("option"); string val1 = all_Options[0].getText();