Sha256: 10870d0ce9e3b2a8a4133bb268d52656de6dcf2d785240c07f676db5f3cfa412
Contents?: true
Size: 623 Bytes
Versions: 59
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true require 'capybara/selenium/extensions/html5_drag' class Capybara::Selenium::IENode < Capybara::Selenium::Node def disabled? # super # optimize to one script call driver.evaluate_script <<~JS.delete("\n"), self arguments[0].msMatchesSelector(' :disabled, select:disabled *, optgroup:disabled *, fieldset[disabled], fieldset[disabled] > *:not(legend), fieldset[disabled] > *:not(legend) *, fieldset[disabled] > legend:nth-of-type(n+2), fieldset[disabled] > legend:nth-of-type(n+2) * ') JS end end
Version data entries
59 entries across 46 versions & 5 rubygems