Class: Watir::Locators::Button::SelectorBuilder::XPath

Inherits:
Element::SelectorBuilder::XPath show all
Defined in:
lib/watir-webdriver/locators/button/selector_builder/xpath.rb

Instance Method Summary collapse

Methods inherited from Element::SelectorBuilder::XPath

#attribute_expression, #build, #initialize

Constructor Details

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

Instance Method Details

#lhs_for(building, key) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/watir-webdriver/locators/button/selector_builder/xpath.rb', line 6

def lhs_for(building, key)
  if building == :input && key == :text
    "@value"
  else
    super
  end
end