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

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/capybara-3.40.0/lib/capybara/selenium/nodes/ie_node.rb
capybara-3.40.0 lib/capybara/selenium/nodes/ie_node.rb
capybara-3.39.2 lib/capybara/selenium/nodes/ie_node.rb
capybara-3.39.1 lib/capybara/selenium/nodes/ie_node.rb
capybara-3.39.0 lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/selenium/nodes/ie_node.rb
capybara-3.38.0 lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/capybara-3.37.1/lib/capybara/selenium/nodes/ie_node.rb
capybara-3.37.1 lib/capybara/selenium/nodes/ie_node.rb
capybara-3.37.0 lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/capybara-3.36.0/lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/capybara-3.36.0/lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/capybara-3.35.3/lib/capybara/selenium/nodes/ie_node.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/selenium/nodes/ie_node.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.36.0/lib/capybara/selenium/nodes/ie_node.rb
capybara-3.36.0 lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/capybara-3.35.3/lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/capybara-3.35.3/lib/capybara/selenium/nodes/ie_node.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/capybara-3.35.3/lib/capybara/selenium/nodes/ie_node.rb