答案 0 :(得分:0)
您是否尝试过使用GetElementsByClassName()?结合Actions类中的KeyDown命令(请参见this question的答案),类似的东西可能对您有用...
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Interactions;
var driver = new WebDriver();
var elements = driver.GetElementsByClassName("ui-state-default ui-selectee");
var action = new Actions(driver);
action.KeyDown(Keys.Control);
foreach (var element in elements)
{
// If element properties match your selection
element.Click()
}