Sha256: a69ebdb7ab2c27ed0deb72776cfda5bd6c976b48cdfa3b1cf9f88dcfbe8a7530

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

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

    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_install-0.3.1 lib/watir_install/generators/example/spec/support/pages/home.rb.tt
watir_install-0.3.0 lib/watir_install/generators/example/spec/support/pages/home.rb.tt