org.openqa.selenium.ElementClickInterceptedException:元素在点(856,732)处不可单击,因为另一个元素将其遮盖了]
请尝试以下选项,
您可以在这种情况下使用明确的等待。以下命令最多等待40秒,以使该按钮可单击。如果该元素在40秒之前是可单击的,则它将单击它。如果40秒的等待时间过去了,那么它将抛出异常。
WebDriverWait wait = new WebDriverWait(driver, 40);
wait.until(ExpectedConditions.elementToBeClickable(driver.findElementById("element-id"));