1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/driver/node.rb

100 lines
1.9 KiB
Ruby
Raw Normal View History

module Capybara
module Driver
class Node
attr_reader :driver, :native
def initialize(driver, native)
@driver = driver
@native = native
end
def all_text
raise NotImplementedError
end
def visible_text
raise NotImplementedError
end
def [](name)
raise NotImplementedError
end
def value
2010-07-09 21:11:54 -04:00
raise NotImplementedError
end
# @param value String or Array. Array is only allowed if node has 'multiple' attribute
def set(value)
raise NotImplementedError
end
def select_option
raise NotImplementedError
end
def unselect_option
raise NotImplementedError
end
def click
raise NotImplementedError
end
def right_click
raise NotImplmentedError
end
def double_click
raise NotImplementedError
end
2013-02-25 13:37:25 -05:00
def hover
raise NotImplementedError
end
def drag_to(element)
raise NotImplementedError
end
def tag_name
raise NotImplementedError
end
def visible?
raise NotImplementedError
end
def checked?
raise NotImplementedError
end
def selected?
raise NotImplementedError
end
2013-01-29 04:46:56 -05:00
def disabled?
raise NotImplementedError
end
def path
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
def trigger(event)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end
def inspect
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
%(#<#{self.class} tag="#{tag_name}">)
end
def ==(other)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
end
end
end
end