Sha256: 30d384044e9431b1eafd538ee81f3836b24fa6adcf4dc791fa2173bacf9c1d98

Contents?: true

Size: 424 Bytes

Versions: 9

Compression:

Stored size: 424 Bytes

Contents

module Mohawk
  module Adapters
    module UIA
      module ElementLocator
        private
        def find_element(value)
          case value
            when Regexp
              all_items.find { |e| e.name =~ value }
            when String
              all_items.find { |e| e.name == value }
            when Fixnum
              all_items[value]
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mohawk-1.0 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.4.4 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.4.3 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.4.2 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.4.1 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.4 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.3 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.2.1 lib/mohawk/adapters/uia/element_locator.rb
mohawk-0.2 lib/mohawk/adapters/uia/element_locator.rb