123456789_123456789_123456789_123456789_123456789_

Class: Capybara::Selenium::IENode

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Capybara::Selenium::Node
Defined in: lib/capybara/selenium/nodes/ie_node.rb

Constant Summary

Node::WhitespaceNormalizer - Included

BREAKING_SPACES, EMPTY_LINES, LEADING_SPACES, LEFT_TO_RIGHT_MARK, LINE_SEPERATOR, NON_BREAKING_SPACE, PARAGRAPH_SEPERATOR, REMOVED_CHARACTERS, RIGHT_TO_LEFT_MARK, SQUEEZED_SPACES, TRAILING_SPACES, ZERO_WIDTH_SPACE

Scroll - Included

SCROLL_POSITIONS

Node - Inherited

GET_XPATH_SCRIPT, OBSCURED_OR_OFFSET_SCRIPT, RAPID_APPEND_TEXT

Class Method Summary

Driver::Node - Inherited

Instance Attribute Summary

Instance Method Summary

Node - Inherited

Scroll - Included

Find - Included

Node::WhitespaceNormalizer - Included

#normalize_spacing

Normalizes the spacing of a node’s text to be similar to what matchers might expect.

#normalize_visible_spacing

Variant on Capybara::Node::Normalizer#normalize_spacing that targets the whitespace of visible elements only.

Driver::Node - Inherited

Constructor Details

This class inherits a constructor from Capybara::Driver::Node

Instance Attribute Details

#disabled?Boolean (readonly)

[ GitHub ]

  
# File 'lib/capybara/selenium/nodes/ie_node.rb', line 6

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