Answer the question
In order to leave comments, you need to log in
How to make moveToElement work?
Colleagues, hello!
I don't understand how to make movetoElement work with chromedriver:
WebElement linkToHover = driver.findElement(By.xpath("//a[text()='Assortment']"));
hoverElement(linkToHover);
hoverElement method:
public static void hoverElement(WebElement element)
{
Actions hover = new Actions(driver);
hover.moveToElement(element).perform();
}
I also tried with build().perfom().
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question