Created
February 13, 2019 18:10
-
-
Save seleniumgists/2cae1fe85971b6d766720860ca7917b0 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
@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