Sha256: 1b24b1e9f75bcc0e1c7ca40d5c52ee36de3ced8186765de8be8487dffd30c368

Contents?: true

Size: 403 Bytes

Versions: 20

Compression:

Stored size: 403 Bytes

Contents

module PageMagic
  class Element
    # module SelectorMethods - adds method for getting and setting an element selector
    module SelectorMethods
      # Gets/Sets a selector
      # @param [Hash] selector method for locating the browser element. E.g. text: 'the text'
      def selector(selector = nil)
        return @selector unless selector
        @selector = selector
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
page_magic-1.2.9 lib/page_magic/element/selector_methods.rb
page_magic-1.2.8 lib/page_magic/element/selector_methods.rb
page_magic-1.2.8.alpha lib/page_magic/element/selector_methods.rb
page_magic-1.2.7 lib/page_magic/element/selector_methods.rb
page_magic-1.2.6 lib/page_magic/element/selector_methods.rb
page_magic-1.2.5 lib/page_magic/element/selector_methods.rb
page_magic-1.2.5.alpha1 lib/page_magic/element/selector_methods.rb
page_magic-1.2.4 lib/page_magic/element/selector_methods.rb
page_magic-1.2.3 lib/page_magic/element/selector_methods.rb
page_magic-1.2.1 lib/page_magic/element/selector_methods.rb
page_magic-1.2.0 lib/page_magic/element/selector_methods.rb
page_magic-1.1.0 lib/page_magic/element/selector_methods.rb
page_magic-1.0.4 lib/page_magic/element/selector_methods.rb
page_magic-1.0.3 lib/page_magic/element/selector_methods.rb
page_magic-1.0.2 lib/page_magic/element/selector_methods.rb
page_magic-1.0.1 lib/page_magic/element/selector_methods.rb
page_magic-1.0.0 lib/page_magic/element/selector_methods.rb
page_magic-1.0.0.alpha21 lib/page_magic/element/selector_methods.rb
page_magic-1.0.0.alpha20 lib/page_magic/element/selector_methods.rb
page_magic-1.0.0.alpha19 lib/page_magic/element/selector_methods.rb