While developing tests in Ruby, we can use the page-object gem for implementing the Page Object model within the tests. The page-object gem provides simple features for building the objects of a Page Object along with Watir-WebDriver.
In this recipe, we will see how to use the page-object gem for implementing the Page Object model for the BMI Calculator's main page.
You need to download and install the page-object gem with the help of the following command:
gem install page-object
For implementing the Page Object model in Ruby using the page-object gem, perform the following steps: