V
V
vadik_kmv2018-04-27 17:12:50
Java
vadik_kmv, 2018-04-27 17:12:50

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

1 answer(s)
T
Talik, 2018-05-07
@Talik0507

and why did you decide that the standard method does not work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question