Skip to content

Commit 598e280

Browse files
committed
Added behavior:instant to suppress CSS smooth scroll settings
1 parent 1f8bd36 commit 598e280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Riganti.Selenium.Core/ElementWrapper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ function findPosition(element) {
654654
}
655655
}
656656
657-
window.scroll(0,findPosition(arguments[0]));
657+
window.scroll({ left:0, top:findPosition(arguments[0]), behavior: 'instant' });
658658
";
659659
var executor = browser.GetJavaScriptExecutor();
660660
executor.ExecuteScript(javascript, WaitForInternalElement(waitForOptions));

0 commit comments

Comments
 (0)