Sha256: 408cb2c0cbc16cc9683973fa31376e4a645fd9a5c9e5970d0dfc5cfbd7ab52d9

Contents?: true

Size: 296 Bytes

Versions: 42

Compression:

Stored size: 296 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

42 entries across 42 versions & 3 rubygems

Version Path
page-object-1.0.2 lib/page-object/nested_elements.rb
page-object-1.0.1 lib/page-object/nested_elements.rb
page-object-1.0 lib/page-object/nested_elements.rb
page-object-0.9.8 lib/page-object/nested_elements.rb
page-object-0.9.7 lib/page-object/nested_elements.rb
page-object-0.9.6 lib/page-object/nested_elements.rb
page-object-0.9.5 lib/page-object/nested_elements.rb
page-object-0.9.4 lib/page-object/nested_elements.rb
page-object-0.9.3 lib/page-object/nested_elements.rb
page-object-0.9.2 lib/page-object/nested_elements.rb
page-object-0.9.1 lib/page-object/nested_elements.rb
page-object-0.9.0 lib/page-object/nested_elements.rb
page-object-0.8.10 lib/page-object/nested_elements.rb
page-object-0.8.9 lib/page-object/nested_elements.rb
page-object-0.8.8 lib/page-object/nested_elements.rb
page-object-0.8.7 lib/page-object/nested_elements.rb
page-object-0.8.6.1 lib/page-object/nested_elements.rb
page-object-0.8.6 lib/page-object/nested_elements.rb
page-object-0.8.5 lib/page-object/nested_elements.rb
page-object-0.8.4 lib/page-object/nested_elements.rb