Sha256: 348d3ff24edb730eb97f5a59997ab83132dc82c53709e0a2b8b0cf435923f391

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

module <%= name.split('_').map(&:capitalize).join %>
  class Home < WatirDrops::PageObject

    element(:search_term) { browser.text_field(name: 'q')}
    element(:submit) { browser.button(name: 'btnG') }

    page_url { 'https://www.google.com/' }

    def search(data)
      fill_form(data)
      submit.click
    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/lib/pages/home.rb.tt