Sha256: 4b512220fc5f82363e1cd51a7d34500fcf35fa5bbfa30a0f2918f04d75bb71dc

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

module <%= name.capitalize %>
  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

2 entries across 2 versions & 1 rubygems

Version Path
watir_framework-0.1.3 generators/new_project/templates/lib/pages/home.rb.erb
watir_framework-0.1.2 generators/new_project/templates/lib/pages/home.rb.erb