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

Fix raising of error for trying to use shadow_root on old Selenium

This commit is contained in:
Matijs van Zuijlen 2022-11-06 17:18:23 +01:00 committed by Thomas Walpole
parent 51d6982705
commit 0a1fccbff0

View file

@ -221,7 +221,7 @@ class Capybara::Selenium::Node < Capybara::Driver::Node
end
def shadow_root
raise_error 'You must be using Selenium 4.1+ for shadow_root support' unless native.respond_to? :shadow_root
raise 'You must be using Selenium 4.1+ for shadow_root support' unless native.respond_to? :shadow_root
root = native.shadow_root
root && build_node(native.shadow_root)