module PageMagic::Element::Selector::Methods
module SelectorMethods - adds method for getting and setting an element selector
Public Instance Methods
selector(selector = nil)
click to toggle source
Gets/Sets a selector @param [Hash<Symbol,String>] selector method for locating the browser element. E.g. text: ‘the text’
# File lib/page_magic/element/selector/methods.rb, line 10 def selector(selector = nil) return @selector unless selector @selector = selector end