Sha256: e58d76c337867bd0006c555f7803e9e5cf6307f94dc98a28204e3357e03d9cc7

Contents?: true

Size: 487 Bytes

Versions: 12

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module PageMagic
  class Element
    class Selector
      # module SelectorMethods - adds method for getting and setting an element selector
      module Methods
        # Gets/Sets a selector
        # @param [Hash<Symbol,String>] 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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
page_magic-2.0.13 lib/page_magic/element/selector/methods.rb
page_magic-2.0.12 lib/page_magic/element/selector/methods.rb
page_magic-2.0.11 lib/page_magic/element/selector/methods.rb
page_magic-2.0.10 lib/page_magic/element/selector/methods.rb
page_magic-2.0.9 lib/page_magic/element/selector/methods.rb
page_magic-2.0.6 lib/page_magic/element/selector/methods.rb
page_magic-2.0.5 lib/page_magic/element/selector/methods.rb
page_magic-2.0.4 lib/page_magic/element/selector/methods.rb
page_magic-2.0.3 lib/page_magic/element/selector/methods.rb
page_magic-2.0.2 lib/page_magic/element/selector/methods.rb
page_magic-2.0.1 lib/page_magic/element/selector/methods.rb
page_magic-2.0.0 lib/page_magic/element/selector/methods.rb