Sha256: f5e44be9ee596ed845f653540c7744236073e79b21de6ed34268972bef8788e8
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
module Capybara::Accessible module Adapters class Selenium def failures_script 'return axs.Audit.auditResults(results).getErrors();' end def create_report_script 'return axs.Audit.createReport(results);' end def run_javascript(driver, script) driver.execute_script(script) rescue ::Selenium::WebDriver::Error::UnhandledAlertError puts 'Skipping accessibility audit: Modal dialog present' nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-accessible-0.3.0 | lib/capybara/accessible/adapters/selenium.rb |