Is there a way to get the “raw” string content of an image when doing session.driver.render('test.png') in capybara, without actually saving the image to the disk and loading it back into memory afterwards?
Is there a way to get the raw string content of an image when
Share
PhantomJS provides a
renderBase64method. API ReferencePoltergeist however provides no binding for it.
I just had a quick look, but I think you should be able to fork/patch Poltergeist to include the binding in driver.rb and browser.rb
Here is already a discussion about this: https://github.com/jonleighton/poltergeist/issues/189