public void ShouldBeAbleToExecuteSimpleJavascriptAndReturnALong()
{
if (!(driver is IJavaScriptExecutor))
return;
driver.Url = xhtmlTestPage;
object result = ExecuteScript("return document.title.length;");
Assert.IsTrue(result is long, result.GetType().Name);
Assert.AreEqual((long)"XHTML Test Page".Length, (long)result);
}