public void shouldBeAbleToExecuteMultipleAsyncScriptsSequentiallyWithNavigation() {
// NOTE: This test is supposed to fail!
// It's a reminder that there is some internal issue in PhantomJS still to address.
WebDriver d = getDriver();
d.manage().timeouts().setScriptTimeout(0, TimeUnit.MILLISECONDS);
d.get("http://www.google.com/");
Number numericResult = (Number) ((JavascriptExecutor) d).executeAsyncScript(
"arguments[arguments.length - 1](123);");
assertEquals(123, numericResult.intValue());