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

Support quirks mode in document#scroll_to, just in case

This commit is contained in:
Thomas Walpole 2021-07-24 11:48:23 -07:00
parent b2e2a27777
commit 38da9dd91d

View file

@ -40,8 +40,8 @@ module Capybara
find(:xpath, '/html').evaluate_script(*args)
end
def scroll_to(*args, **options)
find(:xpath, '/html').scroll_to(*args, **options)
def scroll_to(*args, quirks: false, **options)
find(:xpath, quirks ? '//body' : '/html').scroll_to(*args, **options)
end
end
end