Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created February 13, 2019 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seleniumgists/2cae1fe85971b6d766720860ca7917b0 to your computer and use it in GitHub Desktop.
Save seleniumgists/2cae1fe85971b6d766720860ca7917b0 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
@Test
public void hover() {
driver = new ChromeDriver();
driver.get("<http://the-internet.herokuapp.com/hovers>");
List<WebElement> profile = driver.findElements(By.cssSelector(".figure"));
for (WebElement hover : profile) {
new Actions(driver).moveToElement(hover).pause(Duration.ofSeconds(3)).perform();
}
driver.quit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment