class Capybara::Driver::Node

Attributes

driver[R]
native[R]

Public Class Methods

new(driver, native) click to toggle source
# File lib/capybara/driver/node.rb, line 6
def initialize(driver, native)
  @driver = driver
  @native = native
end

Public Instance Methods

==(other) click to toggle source
# File lib/capybara/driver/node.rb, line 107
def ==(other)
  raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
end
[](name) click to toggle source
# File lib/capybara/driver/node.rb, line 19
def [](name)
  raise NotImplementedError
end
all_text() click to toggle source
# File lib/capybara/driver/node.rb, line 11
def all_text
  raise NotImplementedError
end
checked?() click to toggle source
# File lib/capybara/driver/node.rb, line 73
def checked?
  raise NotImplementedError
end
click() click to toggle source
# File lib/capybara/driver/node.rb, line 41
def click
  raise NotImplementedError
end
disabled?() click to toggle source
# File lib/capybara/driver/node.rb, line 81
def disabled?
  raise NotImplementedError
end
double_click() click to toggle source
# File lib/capybara/driver/node.rb, line 49
def double_click
  raise NotImplementedError
end
drag_to(element) click to toggle source
# File lib/capybara/driver/node.rb, line 61
def drag_to(element)
  raise NotImplementedError
end
hover() click to toggle source
# File lib/capybara/driver/node.rb, line 57
def hover
  raise NotImplementedError
end
inspect() click to toggle source
# File lib/capybara/driver/node.rb, line 101
def inspect
  %Q(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
  %Q(#<#{self.class} tag="#{tag_name}">)
end
multiple?() click to toggle source
# File lib/capybara/driver/node.rb, line 89
def multiple?
  !!self[:multiple]
end
path() click to toggle source
# File lib/capybara/driver/node.rb, line 93
def path
  raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
readonly?() click to toggle source
# File lib/capybara/driver/node.rb, line 85
def readonly?
  !!self[:readonly]
end
right_click() click to toggle source
# File lib/capybara/driver/node.rb, line 45
def right_click
  raise NotImplementedError
end
select_option() click to toggle source
# File lib/capybara/driver/node.rb, line 33
def select_option
  raise NotImplementedError
end
selected?() click to toggle source
# File lib/capybara/driver/node.rb, line 77
def selected?
  raise NotImplementedError
end
send_keys(*args) click to toggle source
# File lib/capybara/driver/node.rb, line 53
def send_keys(*args)
  raise NotImplementedError
end
set(value, options={}) click to toggle source

@param value String or 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

# File lib/capybara/driver/node.rb, line 29
def set(value, options={})
  raise NotImplementedError
end
tag_name() click to toggle source
# File lib/capybara/driver/node.rb, line 65
def tag_name
  raise NotImplementedError
end
trigger(event) click to toggle source
# File lib/capybara/driver/node.rb, line 97
def trigger(event)
  raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end
unselect_option() click to toggle source
# File lib/capybara/driver/node.rb, line 37
def unselect_option
  raise NotImplementedError
end
value() click to toggle source
# File lib/capybara/driver/node.rb, line 23
def value
  raise NotImplementedError
end
visible?() click to toggle source
# File lib/capybara/driver/node.rb, line 69
def visible?
  raise NotImplementedError
end
visible_text() click to toggle source
# File lib/capybara/driver/node.rb, line 15
def visible_text
  raise NotImplementedError
end