jnicklas/capybara — pull request #938 by abotalov (2013-01-12 23:15:51+00:00)
Title: Add *args option to execute_script

This PR aims to do nearly the same as https://github.com/jnicklas/capybara/pull/564

However, this one:
* adds tests
* casts args of type `Capybara::Node::Element` to native
* casts returned value to `Capybara::Driver::Node` (I don't know how to create proper `Capybara::Node::Element` from driver.rb)

Parameters [are supported by PhantomJS](https://github.com/ariya/phantomjs/pull/231) so it will be possible to add this functionality to at least Poltergeist.