Sha256: 45258670db59f1bd42e6269f5694bc62c77abf5707c73d5c9b799f6c0b3f7f47

Contents?: true

Size: 385 Bytes

Versions: 1

Compression:

Stored size: 385 Bytes

Contents

require 'capybara/accessible/auditor'

module Capybara::Accessible
  module Extensions
    module Element
      def click
        super
        driver = @session.driver
        if driver.respond_to?(:accessible)
          Auditor.new(@session.driver).audit!
        end
      end
    end
  end
end

class Capybara::Node::Element
  prepend Capybara::Accessible::Extensions::Element
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara-accessible-0.3.0 lib/capybara/accessible/extensions/element.rb