Sha256: a70832799b8ef0e0be5bf80209d94634775e4280bef0f6559b60696bf3e4ff34
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
module Capybara module Node class Element < Base include Capybara::Accessible::Auditor def click synchronize { base.click } begin if Capybara.current_driver == :accessible && audit_results.any? { |r| r['result'] == 'FAIL' } raise Capybara::Accessible::InaccessibleError, failure_messages end rescue ::Selenium::WebDriver::Error::UnhandledAlertError => e puts "Skipping accessibility audit: #{e}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-accessible-0.0.2 | lib/capybara/accessible/element.rb |