In Selenium/Chromedriver it is possible to execute arbitrary jQuery selectors and receive a list of native Selenium::WebDriver::Elements:
page.evaluate_script("$('.some_class')")
=> [#<Selenium::WebDriver::Element:0x1 id="...">, ...]
When I execute the same selector in in Poltergeist/PhantomJS I get the following:
page.evaluate_script("$('.some_class')")
=> "(cyclic structure)"
Is there any way to get Poltegeist/PhantomJS to return the Poltergeist-equivalent list of elements?
I know about find(:css, ".some_class"), but I'm trying to expose Angular's getTestability interface to access models, bindings, etc from within Capybara...see capybara-ng, which only works in Selenium.