Does anyone have a solution for executing Eval (Javascript) in Webdriver using Ruby bindings?
Something similar to the Java example below.
WebElement element = driver.findElement(By.id( "foo" ));
String name = (String) ((JavascriptExecutor) driver).executeScript(
"return arguments[0].tagName" , element)