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/base.rb

61 lines
967 B
Ruby
Raw Normal View History

class Capybara::Driver::Base
def current_url
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
def visit(path)
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
2009-12-29 23:43:14 -05:00
def find(query_format=:xpath, query)
2009-12-29 23:43:14 -05:00
raise NotImplementedError
end
2009-12-29 23:43:14 -05:00
def html
2010-07-09 21:11:54 -04:00
raise NotImplementedError
2009-12-14 09:30:29 -05:00
end
2009-12-29 23:43:14 -05:00
2010-07-09 21:11:54 -04:00
def execute_script(script)
raise Capybara::NotSupportedByDriverError
end
2009-12-29 23:43:14 -05:00
2010-07-09 21:11:54 -04:00
def evaluate_script(script)
raise Capybara::NotSupportedByDriverError
end
def save_screenshot(path, options={})
raise Capybara::NotSupportedByDriverError
end
def response_headers
raise Capybara::NotSupportedByDriverError
end
2010-10-29 07:41:49 -04:00
def status_code
raise Capybara::NotSupportedByDriverError
end
2009-12-29 23:43:14 -05:00
2013-01-08 03:40:12 -05:00
def within_frame(frame_handle)
raise Capybara::NotSupportedByDriverError
2010-01-12 14:40:10 -05:00
end
def within_window(handle)
2010-08-27 15:00:08 -04:00
raise Capybara::NotSupportedByDriverError
end
2011-07-13 09:39:17 -04:00
def invalid_element_errors
[]
end
2010-07-09 21:11:54 -04:00
def wait?
false
end
2010-07-29 09:25:45 -04:00
def reset!
end
def needs_server?
false
end
2009-12-29 23:43:14 -05:00
end