diff --git a/src/Core/Riganti.Selenium.Core/ElementWrapper.cs b/src/Core/Riganti.Selenium.Core/ElementWrapper.cs index 30dd64d..e76b6ad 100644 --- a/src/Core/Riganti.Selenium.Core/ElementWrapper.cs +++ b/src/Core/Riganti.Selenium.Core/ElementWrapper.cs @@ -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));