Created
June 17, 2019 14:39
-
-
Save seleniumgists/5784f33ee9c06dcc279da34e33e4e9c8 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebElement element = driver.findElement(By.id("id_of_element")); | |
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", element); | |
Thread.sleep(500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment