Sha256: 45b6102632f52e3283d0ce556b237d5d7ff53b6e43533c5a985e4ac381dc09e0

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir_install-0.2.1 lib/watir_install/generators/new_project/features/support/pages/home.rb.tt