Class: Watir::Locators::TextField::SelectorBuilder::XPath

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

Instance Method Summary collapse

Methods inherited from Element::SelectorBuilder::XPath

#attribute_expression, #build, #equal_pair, #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
13
14
# File 'lib/watir-webdriver/locators/text_field/selector_builder/xpath.rb', line 6

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