new Actions(driver).moveToElement(driver.findElement(By.id(“footer_menu”))); не работает:
ВебДрайвер 2.53.0
new Actions(driver).moveToElement(driver.findElement(By.id(“footer_menu”))).perform();
2 лайка
до этого писал
new Actions(driver).moveToElement(driver.findElement(By.id(“footer_menu”))).build().perform();
тут есть разница?
нет.
` /**
- Generates a composite action containing all actions so far, ready to be performed (and
- resets the internal builder state, so subsequent calls to build() will contain fresh
- sequences).
-
@return the composite action
*/
public Action build() {
CompositeAction toReturn = action;
resetCompositeAction();
return toReturn;
}
/**
- A convenience method for performing the actions without calling build() first.
*/
public void perform() {
build().perform();
`