mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Return the real class on Capybara::Driver::Node#inspect.
This commit is contained in:
parent
6cb1b124d5
commit
001a44220a
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ module Capybara
|
|||
end
|
||||
|
||||
def inspect
|
||||
%(#<Capybara::Driver::Node tag="#{tag_name}" path="#{path}">)
|
||||
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
|
||||
rescue NotSupportedByDriverError
|
||||
%(#<Capybara::Driver::Node tag="#{tag_name}">)
|
||||
%(#<#{self.class} tag="#{tag_name}">)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue