Install ruby-poltergeist by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-poltergeist
Description:
PhantomJS driver for Capybara
Poltergeist is a driver for Capybara that allows you to run your tests on a headless WebKit browser, provided by PhantomJS.
Homepage: https://github.com/teampoltergeist/poltergeist
Version: 1.10.0-1
Section: universe/ruby