在要单击的元素可用之前,需要将鼠标悬停在菜单上!
Element is not currently visible and so may not be interacted with (WARNING: The server did not provide any stacktrace information)
硒错误
我试过这个:
action.moveToElement(WebElement1);
action.moveToElement(WebElement2);
action.click();
action.perform();