Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近从 selenium RC 转移到 WebDriverBackedSelenium。isEditable 不能在其中工作,而在 seleniumRC 中工作正常。知道如何使它工作。
isEditableSelenium Webdriver 中没有该方法。相反,您可以使用Enabled函数。如果您已从 RC 迁移,您可能可以定义自己的函数,如下所示,而不是替换现有代码。
isEditable
Enabled
public bool IsEditable(string xpath) { bool state = false; if (driver.FindElement(By.XPath(xpath)).Enabled) { state = true; } return state; }