Sha256: 0f882b2cda943e0325c6cf00c56f4c70e28b27a91f0e6fe5ff75e8736b457bc3

Contents?: true

Size: 430 Bytes

Versions: 8

Compression:

Stored size: 430 Bytes

Contents

module Watir
  module Locators
    class TextField
      class SelectorBuilder
        class XPath < Element::SelectorBuilder::XPath
          def lhs_for(building, key)
            if building == :input && key == :text
              "@value"
            elsif building == :textarea && key == :value
              "text()"
            else
              super
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
watir-webdriver-0.9.9 lib/watir-webdriver/locators/text_field/selector_builder/xpath.rb
watir-6.0.0.beta5 lib/watir/locators/text_field/selector_builder/xpath.rb
watir-6.0.0.beta4 lib/watir/locators/text_field/selector_builder/xpath.rb
watir-6.0.0.beta3 lib/watir/locators/text_field/selector_builder/xpath.rb
watir-6.0.0.beta2 lib/watir/locators/text_field/selector_builder/xpath.rb
watir-6.0.0.beta1 lib/watir/locators/text_field/selector_builder/xpath.rb
watir-webdriver-0.9.3 lib/watir-webdriver/locators/text_field/selector_builder/xpath.rb
watir-webdriver-0.9.2 lib/watir-webdriver/locators/text_field/selector_builder/xpath.rb