2009-12-09 15:43:40 -05:00
|
|
|
class Capybara::Driver::Base
|
2009-12-16 09:16:52 -05:00
|
|
|
def current_url
|
2009-12-29 23:43:14 -05:00
|
|
|
raise NotImplementedError
|
2009-12-16 09:16:52 -05:00
|
|
|
end
|
|
|
|
|
2009-12-09 15:43:40 -05:00
|
|
|
def visit(path)
|
2009-12-29 23:43:14 -05:00
|
|
|
raise NotImplementedError
|
2009-12-09 15:43:40 -05:00
|
|
|
end
|
2009-12-29 23:43:14 -05:00
|
|
|
|
2013-02-19 12:03:26 -05:00
|
|
|
def find_xpath(query)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def find_css(query)
|
2009-12-29 23:43:14 -05:00
|
|
|
raise NotImplementedError
|
2009-12-09 15:43:40 -05:00
|
|
|
end
|
2009-12-29 23:43:14 -05:00
|
|
|
|
2012-09-09 21:05:17 -04: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)
|
2013-03-08 22:44:40 -05:00
|
|
|
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#execute_script'
|
2009-12-09 15:43:40 -05:00
|
|
|
end
|
2009-12-29 23:43:14 -05:00
|
|
|
|
2010-07-09 21:11:54 -04:00
|
|
|
def evaluate_script(script)
|
2013-03-08 22:44:40 -05:00
|
|
|
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#evaluate_script'
|
2010-02-25 17:51:51 -05:00
|
|
|
end
|
|
|
|
|
2012-07-10 00:50:15 -04:00
|
|
|
def save_screenshot(path, options={})
|
2013-03-08 22:44:40 -05:00
|
|
|
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#save_screenshot'
|
2012-07-10 00:50:15 -04:00
|
|
|
end
|
|
|
|
|
2009-12-18 12:50:55 -05:00
|
|
|
def response_headers
|
2013-03-08 22:44:40 -05:00
|
|
|
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#response_headers'
|
2009-12-18 12:50:55 -05:00
|
|
|
end
|
2010-10-29 07:41:49 -04:00
|
|
|
|
2010-06-06 23:14:40 -04:00
|
|
|
def status_code
|
2013-03-08 22:44:40 -05:00
|
|
|
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#status_code'
|
2010-06-06 21:13:57 -04:00
|
|
|
end
|
2009-12-29 23:43:14 -05:00
|
|
|
|
2013-01-08 03:40:12 -05:00
|
|
|
def within_frame(frame_handle)
|
2013-03-08 22:44:40 -05:00
|
|
|
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_frame'
|
2010-01-12 14:40:10 -05:00
|
|
|
end
|
|
|
|
|
2010-08-28 12:50:34 -04:00
|
|
|
def within_window(handle)
|
2013-03-08 22:44:40 -05:00
|
|
|
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_window'
|
2010-08-27 15:00:08 -04:00
|
|
|
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
|
2012-07-13 07:29:02 -04:00
|
|
|
|
|
|
|
def needs_server?
|
|
|
|
false
|
|
|
|
end
|
2009-12-29 23:43:14 -05:00
|
|
|
end
|