Sha256: 0d69d67a74435e1c52cb5520e6545caaa2f1a6cb60a4bab2c6abd50898603997

Contents?: true

Size: 264 Bytes

Versions: 3

Compression:

Stored size: 264 Bytes

Contents

module <%= name.split('_').map(&:capitalize).join %>
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.6 lib/generators/templates/lib/pages/results.rb.erb
watir_framework-0.1.5 generators/new_project/templates/lib/pages/results.rb.erb
watir_framework-0.1.4 generators/new_project/templates/lib/pages/results.rb.erb