title: Ruby Selenium WebDriver - get return value of execute_script
body: <p>Simple question here - when I use <code>execute_script</code> in a Ruby Selenium test, is there a way I can get the result of the JavaScript I ran?</p>
  
  <p>This is the code I'm executing: <code>driver.execute_script '$.active'</code></p>
  
  <p>Edit: The solution is so simple. I forgot to include <code>return</code> in the script.</p>