Class: Capybara::Selenium::IENode
- Inherits:
-
Node
- Object
- Driver::Node
- Node
- Capybara::Selenium::IENode
- Defined in:
- lib/capybara/selenium/nodes/ie_node.rb
Instance Attribute Summary
Attributes inherited from Driver::Node
#driver, #initial_cache, #native
Instance Method Summary collapse
Methods inherited from Node
#==, #[], #all_text, #click, #content_editable?, #double_click, #drag_to, #drop, #hover, #multiple?, #obscured?, #path, #readonly?, #right_click, #select_option, #selected?, #send_keys, #set, #style, #tag_name, #unselect_option, #value, #visible?, #visible_text
Methods included from Scroll
Methods included from Find
Methods inherited from Driver::Node
#==, #[], #all_text, #checked?, #click, #double_click, #drag_to, #drop, #hover, #initialize, #inspect, #multiple?, #obscured?, #path, #readonly?, #right_click, #scroll_by, #scroll_to, #select_option, #selected?, #send_keys, #set, #style, #tag_name, #trigger, #unselect_option, #value, #visible?, #visible_text
Constructor Details
This class inherits a constructor from Capybara::Driver::Node
Instance Method Details
#disabled? ⇒ Boolean
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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 |