title: How to execute JavaScript in Ruby written Webdriver test?
body: <p>Is there a known solution to perform Eval (Javascript execution) in Webdriver, Ruby bindings? </p>
  
  <p>The equivalent of the following example in Java.</p>
  
  <pre><code> WebElement element = driver.findElement(By.id( "foo" ));
   String name = (String) ((JavascriptExecutor) driver).executeScript(
   "return arguments[0].tagName" , element)
  </code></pre>