public void ShouldNotTimeoutIfCallbackInvokedImmediately() { driver.Url = ajaxyPage; object result = executor.ExecuteAsyncScript("arguments[arguments.length - 1](123);"); Assert.IsInstanceOf<long>(result); Assert.AreEqual(123, (long)result); }