class Capybara::Driver::Node
Attributes
Public Class Methods
Source
# File lib/capybara/driver/node.rb, line 8 def initialize(driver, native, initial_cache = {}) @driver = driver @native = native @initial_cache = initial_cache end
Public Instance Methods
Source
# File lib/capybara/driver/node.rb, line 138 def ==(other) eql?(other) || (other.respond_to?(:native) && native == other.native) end
Source
# File lib/capybara/driver/node.rb, line 22 def [](name) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 14 def all_text raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 96 def checked? raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 48 def click(keys = [], **options) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 104 def disabled? raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 56 def double_click(keys = [], **options) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 68 def drag_to(element, **options) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 72 def drop(*args) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 132 def inspect %(#<#{self.class} tag="#{tag_name}" path="#{path}">) rescue NotSupportedByDriverError %(#<#{self.class} tag="#{tag_name}">) end
Source
# File lib/capybara/driver/node.rb, line 112 def multiple? !!self[:multiple] end
Source
# File lib/capybara/driver/node.rb, line 92 def obscured? raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 120 def path raise NotSupportedByDriverError, 'Capybara::Driver::Node#path' end
Source
# File lib/capybara/driver/node.rb, line 108 def readonly? !!self[:readonly] end
Source
# File lib/capybara/driver/node.rb, line 116 def rect raise NotSupportedByDriverError, 'Capybara::Driver::Node#rect' end
Source
# File lib/capybara/driver/node.rb, line 52 def right_click(keys = [], **options) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 76 def scroll_by(x, y) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 80 def scroll_to(element, alignment, position = nil) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 40 def select_option raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 100 def selected? raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 60 def send_keys(*args) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 36 def set(value, **options) raise NotImplementedError end
@param value [String, Array] Array is only allowed if node has ‘multiple’ attribute @param options [Hash] Driver
specific options for how to set a value on a node
Source
# File lib/capybara/driver/node.rb, line 128 def shadow_root raise NotSupportedByDriverError, 'Capybara::Driver::Node#shadow_root' end
Source
# File lib/capybara/driver/node.rb, line 30 def style(styles) raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 84 def tag_name raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 124 def trigger(event) raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger' end
Source
# File lib/capybara/driver/node.rb, line 44 def unselect_option raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 88 def visible? raise NotImplementedError end
Source
# File lib/capybara/driver/node.rb, line 18 def visible_text raise NotImplementedError end