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
ca4ec140e3
commit
44be4455bf
1 changed files with 4 additions and 4 deletions
|
@ -70,21 +70,21 @@ module Capybara
|
|||
end
|
||||
|
||||
def path
|
||||
raise NotSupportedByDriverError
|
||||
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
|
||||
end
|
||||
|
||||
def trigger(event)
|
||||
raise NotSupportedByDriverError
|
||||
raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
|
||||
end
|
||||
|
||||
def inspect
|
||||
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
|
||||
rescue NotSupportedByDriverError
|
||||
rescue NotSupportedByDriverError, 'Capybara::Driver::Node#inspect'
|
||||
%(#<#{self.class} tag="#{tag_name}">)
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
raise NotSupportedByDriverError
|
||||
raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue