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/node.rb
2010-02-27 19:26:38 +01:00

60 lines
893 B
Ruby

module Capybara
class Node
include Searchable
attr_reader :driver, :node
def initialize(driver, node)
@driver = driver
@node = node
end
def text
raise NotImplementedError
end
def [](name)
raise NotImplementedError
end
def value
self[:value]
end
def set(value)
raise NotImplementedError
end
def select(option)
raise NotImplementedError
end
def unselect(option)
raise NotImplementedError
end
def click
raise NotImplementedError
end
def drag_to(element)
raise NotImplementedError
end
def tag_name
raise NotImplementedError
end
def visible?
raise NotImplementedError
end
def path
raise NotSupportedByDriverError
end
def trigger(event)
raise NotSupportedByDriverError
end
end
end