/// <summary> /// /// </summary> /// <typeparam name="TResult"></typeparam> /// <param name="driver"></param> /// <param name="javascript"></param> /// <param name="expectedResult"></param> /// <param name="timeout"></param> /// <returns></returns> public static bool WaitForDifferentJavascriptResult <TResult>(this IWebDriver driver, string javascript, TResult expectedResult, ILogger log, TimeSpan?timeout = null) => driver.WaitUntil(Javascript.FunctionResult(javascript, log).Matches(expectedResult, false), timeout ?? TenSeconds);