我正在尝试将鼠标移动到另一个元素上隐藏的元素(在第一次将鼠标悬停之前)。经过第二次悬停后,我看到错误:TypeError:rect is undefined
我试图添加任何期望,超时,scrollintoview脚本。 我应该补充一点,对于chrome来说一切正常。
DesiredCapabilities caps = new DesiredCapabilities();
caps = DesiredCapabilities.firefox();
...
new Actions(driver).moveToElement(cardElement).perform();
WebElement formatElement = cardElement.findElement(By.xpath("..."));
Thread.sleep(10000); // different kinds of expectations
new Actions(driver).moveToElement(formatElement).perform();
预期:卡元素更改视图。 实际:org.openqa.selenium.WebDriverException:TypeError:rect未定义