We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a09053 commit c6ab2a3Copy full SHA for c6ab2a3
src/main/java/com/assertthat/selenium_shutterbug/utils/web/Browser.java
@@ -839,8 +839,7 @@ public void scrollToElement(WebElement element) {
839
}
840
841
public void scrollToElement(By by) {
842
- driver.findElement(by);
843
- executeJsScript(SCROLL_INTO_VIEW_JS, by);
+ executeJsScript(SCROLL_INTO_VIEW_JS, driver.findElement(by));
844
845
846
public void scrollToElementVerticalCentered(WebElement element) {
0 commit comments