提问人:armate 提问时间:9/15/2023 更新时间:9/15/2023 访问量:16
Selenium Java -> 视频播放器控件已关闭 -> org.openqa.selenium.interactions.MoveTargetOutOfBoundsException:将目标移出界外
Selenium Java -> Video player controls are off -> org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: move target out of bounds
问:
当我尝试在我的应用程序中自动化视频 .js 播放器时,我尝试将鼠标悬停在它不起作用,有人可以帮忙吗?
我的代码:
public static void _mouseHover(By by, String eleName) {
Actions hoverOver = new Actions(DriverManager.getDriver());
WebElement ele = _performExplicitWait(by, VISIBLE);
hoverOver.moveToElement(ele).build().perform();
if (!eleName.isEmpty()) Logger.info("Mouse Hovered - " + eleName);
}
当我的视频播放器处于播放模式时,控件将被隐藏,屏幕上没有其他控件,因此我无法使用上述代码悬停。
也尝试了 Javascript 执行器,但没有运气
答: 暂无答案
评论