In this tutorial we will go through RSpec WebDriver Page Object. We will firstly discuss what the Page Object pattern is and why we would want to use it.
In summary the Page Object pattern is used to map web pages to code classes. The whole point of doing this is to allow someone to easily write tests for given web pages by simple reusing the same code over and over again whilst also reducing code duplication and promoting code reuse.
RSpec WebDriver Page Object Video Tutorial
Follow this video tutorial to learn how we can incorporate WebDriver and the Page Object Pattern in RSpec.