Selenium: hover over element

Last updated on:


By by = By.xpath("");

Actions action = new Actions(driver);
WebElement elementToHoverOver = driver.findElement(by);
action.moveToElement(elementToHoverOver);
action.perform();
this.sleep(2);
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.