public void ShouldBeAbleToPassABooleanAsAnArgument()
{
string function = "displayMessage(arguments[0] ? 'True' : 'False');";
if (!(driver is IJavaScriptExecutor))
return;
driver.Url = javascriptPage;
ExecuteScript(function, true);
string text = driver.FindElement(By.Id("result")).Text;
Assert.AreEqual("True", text);
ExecuteScript(function, false);
text = driver.FindElement(By.Id("result")).Text;
Assert.AreEqual("False", text);
}