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:
parent
b2e2a27777
commit
38da9dd91d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue