Selenium Webdriver C# element.Enabled evaluating to true when element is still disabled
问题 My automated tests used to run smoothly, but we moved the QA environment to a different server, and now the tests are failing because the it keeps tries to click on elements that are still loading and greyed out/disabled. Here is part of the code that worked just fine on the previous server: while ( less than 7 seconds ) if (driver.FindElements(by).Count > 0) { if (driver.FindElement(by).Enabled && driver.FindElement(by).Displayed) break; } else { go back to while loop } The problem is that