Sha256: 55cef074fd5ccbee21b9397e3fca6b2a91dd457df0cc61682e75cddc080175e3

Contents?: true

Size: 241 Bytes

Versions: 3

Compression:

Stored size: 241 Bytes

Contents

module <%= name.capitalize %>
class Results < WatirDrops::PageObject

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

    def first_result
      title(results.first).text
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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