Can you explain the distinction between these two pieces of code:
RemoteWebDriver driver = new FirefoxDriver();
Object result = driver.executeScript("somefunction();");
and this:
RemoteWebDriver driver = new FirefoxDriver();
Selenium seleniumDriver = new WebDriverBackedSelenium(driver, driver.getCurrentUrl());
String result = seleniumDriver.getEval("somefunction();");
I have noticed that one command works in certain situations while the other causes Firefox to hang. I am curious about what sets these functions apart and why they yield different results.