title: What is the difference between RemoteWebDriver.executeScript() and Selenium.getEval()?
body: <p>What is the difference between this:</p>
  
  <pre><code>RemoteWebDriver driver = new FirefoxDriver();
  Object result = driver.executeScript("somefunction();");
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>RemoteWebDriver driver = new FirefoxDriver();
  Selenium seleniumDriver = new WebDriverBackedSelenium(driver, driver.getCurrentUrl());
  String result = seleniumDriver.getEval("somefunction();");
  </code></pre>
  
  <p>I have an example when first command works and second hangs Firefox and other way around. I'd like to understand what is the difference between these two functions.</p>