Sha256: 054814445a90b09f43a49d35c61869597574db3c2106f5a2c60ce30d9b5cd4ca

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

module WatirCss
  module Locators
    class Element
      class SelectorBuilder < Watir::Locators::Element::SelectorBuilder

        def css_builder
          @css_builder ||= CSS.new
        end

        private

        def build_wd_selector(selectors)
          unless selectors.values.any? { |e| e.is_a? Regexp }
            build_css(selectors) || build_xpath(selectors)
          end
        end

        def build_css(selectors)
          css_builder.build(selectors)
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir_css-0.1.0 lib/watir_css/locators/element/selector_builder.rb