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

replace debug code

This commit is contained in:
Thomas Walpole 2022-10-03 22:03:50 -07:00
parent add69ef8a2
commit a9fd240122

View file

@ -179,7 +179,7 @@ class Capybara::Selenium::Node < Capybara::Driver::Node
def tag_name
@tag_name ||=
if native.respond_to? :tag_name || true
if native.respond_to? :tag_name
native.tag_name.downcase
else
native.is_a?(::Selenium::WebDriver::ShadowRoot) ? 'ShadowRoot' : 'Unknown'