Sha256: 0b46c47535c6797ba5f355ea9679632cf24f72f21ac473487ca5a911255fde57

Contents?: true

Size: 235 Bytes

Versions: 6

Compression:

Stored size: 235 Bytes

Contents

module WatirFramework
  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

6 entries across 6 versions & 1 rubygems

Version Path
watir_framework-0.1.6 lib/watir_framework/pages/results.rb
watir_framework-0.1.5 lib/watir_framework/pages/results.rb
watir_framework-0.1.4 lib/watir_framework/pages/results.rb
watir_framework-0.1.3 lib/watir_framework/pages/results.rb
watir_framework-0.1.2 lib/watir_framework/pages/results.rb
watir_framework-0.1.1 lib/watir_framework/pages/results.rb