Add simple description to exception
Add description to NotSupportedByDriverError exception to help tracking during debugging
This commit is contained in:
parent
44be4455bf
commit
6038130f54
|
@ -221,7 +221,7 @@ module Capybara
|
|||
|
||||
def inspect
|
||||
%(#<Capybara::Element tag="#{tag_name}" path="#{path}">)
|
||||
rescue NotSupportedByDriverError
|
||||
rescue NotSupportedByDriverError, 'Capybara::Node::Element#inspect'
|
||||
%(#<Capybara::Element tag="#{tag_name}">)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue