Before updating Selenium.Support Nuget, all test cases in my test suite were running correctly. When I updated the Nuget yesterday, all my test cases in which I use WebDriverWait ExpectedConditions, have stopped working and keep failing at point where WebDriverWait ExpectedConditions are used.

When I check information in my VS 2017 I can notice that there is a message saying that ExpectedConditions is obsolete and it will be removed in the future release. I really do not want to stop using this feature because it was very helpful for me.

My question is do you have any solution or suggestions how can I resolve this issue? I am placing one of my examples method where I use ExpectedConditions.

public bool IsAtHomePage()
        WebDriverWait wait = new WebDriverWait(Browser.WebDriver, TimeSpan.FromSeconds(10));

        return Browser.Url == HomePageUrl;

Thank you for your time and replies

  • Have you tried to debug the code to watch the real state of the things before you call wait.Until? – Alexey R. Mar 16 '18 at 10:39
  • Hello Alexey R. I have tried debugging and it keeps failing at the same point, however, I did some more googling and found out to replace the ExpectedConditions with solution given in this link -> stackoverflow.com/questions/23479538/… – Automation_Padawan Mar 16 '18 at 11:51

The set of expected conditions is being removed from the Selenium C# bindings.

Though you can still add them to your library from the source:


Or you can update/migrate your code to use SeleniumExtras.ExpectedConditions, the external library where they are being moved to:



I was able to find the solution in this link -> https://stackoverflow.com/questions/23479538/selenium-c-sharp-webdriverwait-not-waiting

Hope it will help others as well :)

  • I am not sure the answer you have provided here is relevant to your question.. Since you have wait.Until unlike the one asking their question you are referring . And this does not explain why your approach was working before. – Alexey R. Mar 16 '18 at 12:04
  • The issue was connected with Florent B. answer :) – Automation_Padawan Mar 16 '18 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.