Sha256: 31189bdfa848dc892454af4e16cc64c3b1766aa5f5b7dc29883f6f1167b2f648

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
watir_framework-0.1.7 lib/watir_framework/pages/results.rb