Sha256: 759b8b6a350f6f39bafe9fe54505059e1a5dd8d26ef483fef713a9fbd5a4d589

Contents?: true

Size: 197 Bytes

Versions: 60

Compression:

Stored size: 197 Bytes

Contents

module Watir
  class DList < HTMLElement

    def to_hash
      keys = dts.map { |e| e.text }
      values = dds.map { |e| e.text }

      Hash[keys.zip(values)]
    end

  end # DList
end # Watir

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
watir-6.6.2 lib/watir/elements/dlist.rb
watir-6.6.1 lib/watir/elements/dlist.rb
watir-6.6.0 lib/watir/elements/dlist.rb
watir-6.5.0 lib/watir/elements/dlist.rb
watir-6.4.3 lib/watir/elements/dlist.rb
watir-6.4.2 lib/watir/elements/dlist.rb
watir-6.4.1 lib/watir/elements/dlist.rb
watir-6.4.0 lib/watir/elements/dlist.rb
watir-6.4.0.rc2 lib/watir/elements/dlist.rb
watir-6.4.0.rc1 lib/watir/elements/dlist.rb
watir-6.3.0 lib/watir/elements/dlist.rb
watir-6.2.1 lib/watir/elements/dlist.rb
watir-6.2.0 lib/watir/elements/dlist.rb
watir-6.1.0 lib/watir/elements/dlist.rb
watir-6.0.3 lib/watir/elements/dlist.rb
watir-6.0.2 lib/watir/elements/dlist.rb
watir-6.0.1 lib/watir/elements/dlist.rb
watir-webdriver-0.9.9 lib/watir-webdriver/elements/dlist.rb
watir-6.0.0 lib/watir/elements/dlist.rb
watir-6.0.0.beta5 lib/watir/elements/dlist.rb