The goal of this post is to cover the basics of Capybara and Ruby, and give a brief introduction to functional programming…