require 'page-object' module <%= name.split('_').map(&:capitalize).join %> class Home include PageObject include DataMagic page_url "https://www.google.com/" text_field(:search_input, name: 'q') button(:submit, name: 'btnG') def search(data) populate_page_with data_for :search self.submit end end end