首页 > 解决方案 > Winium 找不到 JavaFX 元素

问题描述

UISpy用来识别 Windows 桌面应用程序的元素。我使用元素的 AutomationId 如下:

WiniumDriver driver = new WiniumDriver(new URL("http://localhost:9999"), option);
driver.findElement(By.id("JavaFX98")).click();

我在执行过程中遇到异常,我尝试通过名称来识别相同的元素:

Exception in thread "main" org.openqa.selenium.NoSuchElementException:
Element cannot be found (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 30.45 seconds

标签: seleniumjavafxwinium

解决方案


推荐阅读