Sha256: 56fd3d48f25a8d4511eae823e95fd0c9ac694984d5d8fe1c92673c5a954e50bf

Contents?: true

Size: 889 Bytes

Versions: 1

Compression:

Stored size: 889 Bytes

Contents

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

        private

        def assert_valid_as_attribute(attribute)
          return if ng_attribute?(attribute)
          super
        end

        def ng_attribute?(attribute)
          ng_attributes.include? attribute[/^ng_(.+)$/, 1]
        end

        def ng_attributes
          %w[app bind bind_html bind_template blur change checked class
class_even class_odd click cloak controller copy csp cut dblclick disabled focus
form hide href if include init jq keydown keypress keyup list maxlength
minlength model model_options mousedown mouseenter mouseleave mousemove mouseover
mouseup non_bindable open options paste pluralize readonly repeat required selected
show src srcset style submit switch transclude value]
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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