Sha256: 82910216a5bb6eb53da76368efb4a768128231c645fb6f4879367326811f9c40

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

require 'page-object/locator_generator'

module PageObject
  module NestedElements

    def self.included(cls)
      ::PageObject::LocatorGenerator.generate_locators(cls)
    end

    private

    def locator(identifier)
      identifier[0] ? identifier[0] : {:index => 0}
    end
    
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
centric_page_object-2.3.1 lib/page-object/nested_elements.rb
page-object-2.3.1 lib/page-object/nested_elements.rb
page-object-2.3.0 lib/page-object/nested_elements.rb
page-object-lds-0.0.14 lib/page-object/nested_elements.rb
page-object-lds-0.0.13 lib/page-object/nested_elements.rb
page-object-lds-0.0.12 lib/page-object/nested_elements.rb
page-object-lds-0.0.11 lib/page-object/nested_elements.rb
page-object-lds-0.0.1 lib/page-object/nested_elements.rb
meeane-page-object-0.1.10 lib/page-object/nested_elements.rb
meeane-page-object-0.1.8 lib/page-object/nested_elements.rb