Skip to content

Commit

Permalink
Merge pull request #20 from riganti/fix/scrollToAnimation
Browse files Browse the repository at this point in the history
ScrollTo suppresses CSS smooth scroll behavior
  • Loading branch information
quigamdev authored Sep 14, 2024
2 parents 6741d78 + 598e280 commit f696d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Riganti.Selenium.Core/ElementWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ function findPosition(element) {
}
}
window.scroll(0,findPosition(arguments[0]));
window.scroll({ left:0, top:findPosition(arguments[0]), behavior: 'instant' });
";
var executor = browser.GetJavaScriptExecutor();
executor.ExecuteScript(javascript, WaitForInternalElement(waitForOptions));
Expand Down

0 comments on commit f696d7a

Please sign in to comment.