I am using the below for waiting until the ajax loader is finished loading
var wait = new WebDriverWait(BrowserFactory.Driver, TimeSpan.FromSeconds(60));
wait.Until(d => (bool) (d as IJavaScriptExecutor).ExecuteScript(
"return (window.jQuery != undefined) && (jQuery.active == 0)"));
But I get
"Failed: OpenQA.Selenium.WebDriverTimeoutException : Timed out after 60 seconds"