Sha256: 81768bbb84fa995eb5bb7c09e2a84e7a4a7fbb2c8a1d743aa12ee69e4c32f13b
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
module Domkey module View # return collection of PageObjects for label locators corresponding to id of each element in a collection class LabelMapper # @param [Array<PageObject>] # @param [PageObjectCollection] # @return [Array<PageObject>] where each PageObject is a locator for label for an id of a PageObject passed in parameters def self.for collection collection.map do |e| PageObject.new -> { label(for: e.element.id) }, e.container end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
domkey-0.2.0 | lib/domkey/view/label_mapper.rb |