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:
parent
729020e7d5
commit
ca4ec140e3
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue