What is Capybara, Poltergeist and PhantomJS? #
In this part I will try to cover the following aspects:
- Running asynchronous code in a web driver
- Making the call synchronous
- Wrapping it into some common solution
- Advanced example - working with IndexedDB from Capybara
PhantomJS #
First of all, we need to know what is PhantomJS. I would say it’s a ’tool that acts like a browser but can be controlled from outside using simple command interface’. In more common words, it’s a web driver. It’s a full-featured WebKit (an engine of Chrome/Safari/few last versions of Opera and other browsers), but in console. You can use it for scripting, automating or testing.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.