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-2.2.6 lib/page-object/nested_elements.rb
page-object-2.2.5 lib/page-object/nested_elements.rb
page-object-2.2.4 lib/page-object/nested_elements.rb
page-object-2.2.3 lib/page-object/nested_elements.rb
page-object-2.2.2 lib/page-object/nested_elements.rb
page-object-2.2.1 lib/page-object/nested_elements.rb
page-object-2.2 lib/page-object/nested_elements.rb
page-object-2.1.1 lib/page-object/nested_elements.rb
page-object-2.1 lib/page-object/nested_elements.rb
page-object-2.0.0 lib/page-object/nested_elements.rb
page-object-1.2.2 lib/page-object/nested_elements.rb
page-object-1.2.1 lib/page-object/nested_elements.rb
page-object-1.2.0 lib/page-object/nested_elements.rb
page-object-1.1.1 lib/page-object/nested_elements.rb
page_object-1.1.3 lib/page-object/nested_elements.rb
page_object-1.1.2 lib/page-object/nested_elements.rb
page_object-1.1.1 lib/page-object/nested_elements.rb
page-object-1.1.0 lib/page-object/nested_elements.rb
page-object-1.0.3 lib/page-object/nested_elements.rb
meeane-page-object-0.1.11 lib/page-object/nested_elements.rb