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

61 lines
893 B
Ruby
Raw Normal View History

module Capybara
class Node
include Searchable
2009-12-29 23:43:14 -05:00
attr_reader :driver, :node
def initialize(driver, node)
@driver = driver
@node = node
end
def text
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def [](name)
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def value
self[:value]
end
def set(value)
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def select(option)
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def unselect(option)
raise NotImplementedError
end
def click
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def drag_to(element)
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def tag_name
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def visible?
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def path
raise NotSupportedByDriverError
end
2010-02-15 08:54:11 -05:00
def trigger(event)
raise NotSupportedByDriverError
end
2009-12-22 15:13:55 -05:00
end
end