Class: Watir::Locators::Row::SelectorBuilder

Inherits:
Element::SelectorBuilder show all
Defined in:
lib/watir/locators/row/selector_builder.rb,
lib/watir/locators/row/selector_builder/xpath.rb

Defined Under Namespace

Classes: XPath

Constant Summary

Constants inherited from Element::SelectorBuilder

Element::SelectorBuilder::VALID_WHATS, Element::SelectorBuilder::WILDCARD_ATTRIBUTE

Instance Attribute Summary

Attributes inherited from Element::SelectorBuilder

#built, #custom_attributes

Instance Method Summary collapse

Methods inherited from Element::SelectorBuilder

#build, #initialize, #wd_locators

Constructor Details

This class inherits a constructor from Watir::Locators::Element::SelectorBuilder

Instance Method Details

#build_wd_selector(selector) ⇒ Object



7
8
9
10
# File 'lib/watir/locators/row/selector_builder.rb', line 7

def build_wd_selector(selector)
  scope_tag_name = @query_scope.selector[:tag_name] || @query_scope.tag_name
  implementation_class.new.build(selector, scope_tag_name)
end

#merge_scope?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/watir/locators/row/selector_builder.rb', line 12

def merge_scope?
  false
end