Selenium Wait doesn't wait for Element to be Clickable
问题 I have a page that is dynamically loaded and contains a button. I am trying to wait for the button to be available to be clicked with selenium using the C# bindings. I have the following code: WebDriverWait wait = new WebDriverWait(Driver.Instance, TimeSpan.FromSeconds(30)); wait.Until(ExpectedConditions.ElementToBeClickable(By.Id("addInspectionButton"))); var button = Driver.Instance.FindElement(By.Id("addInspectionButton")); button.Click(); this doesn't work though. The click event is never