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'm placing one of my examples method, where I use ExpectedConditions
.
public bool IsAtHomePage()
{
WebDriverWait wait = new WebDriverWait(Browser.WebDriver, TimeSpan.FromSeconds(10));
wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(By.Id("custom-tree")));
return Browser.Url == HomePageUrl;
}