Sha256: 63cd264458cbfaae5a70cce1b178d3a77611268fbceaada41a9c71fa251170bb

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

module Watir
  module Locators
    class Cell
      class SelectorBuilder
        class XPath < Element::SelectorBuilder::XPath
          private

          def start_string
            @adjacent ? './' : './*'
          end

          def tag_string
            return super if @adjacent

            "[#{process_attribute(:tag_name, 'th')} or #{process_attribute(:tag_name, 'td')}]"
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-7.3.0 lib/watir/locators/cell/selector_builder/xpath.rb
watir-7.2.2 lib/watir/locators/cell/selector_builder/xpath.rb
watir-7.2.1 lib/watir/locators/cell/selector_builder/xpath.rb
watir-7.2.0 lib/watir/locators/cell/selector_builder/xpath.rb