Sha256: 5d05232b01ea84a562b5c730de5ce1b4be74488a1f7e142110bc78556f33fa68

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

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

    elements(:results) { browser.divs(class: 'g') }
    element(:title) { |element| element.h3 }

    def first_result
      title(results.first).text
    end

  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
watir_install-0.2.1 lib/watir_install/generators/new_project/lib/pages/results.rb.tt
watir_framework-0.1.7 lib/generators/templates/lib/pages/results.rb.erb