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

Add simple description to exception

Add description to NotSupportedByDriverError exception to help tracking during debugging
This commit is contained in:
randoum 2013-03-09 11:44:40 +08:00
parent 729020e7d5
commit ca4ec140e3

View file

@ -20,31 +20,31 @@ class Capybara::Driver::Base
end
def execute_script(script)
raise Capybara::NotSupportedByDriverError
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#execute_script'
end
def evaluate_script(script)
raise Capybara::NotSupportedByDriverError
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#evaluate_script'
end
def save_screenshot(path, options={})
raise Capybara::NotSupportedByDriverError
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#save_screenshot'
end
def response_headers
raise Capybara::NotSupportedByDriverError
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#response_headers'
end
def status_code
raise Capybara::NotSupportedByDriverError
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#status_code'
end
def within_frame(frame_handle)
raise Capybara::NotSupportedByDriverError
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_frame'
end
def within_window(handle)
raise Capybara::NotSupportedByDriverError
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_window'
end
def invalid_element_errors