selenium - 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
解决方案
推荐阅读
- variables - zsh 使用多行声明 PROMPT
- powershell - PowerShell:如果通过调度程序执行,SendKeys 将不起作用
- reactjs - Firebase Firestore - 在另一个未知 ID 的文档中访问文档
- java - 尝试运行示例 Spring Boot 应用程序时出现格式错误的 url excpetion
- javascript - 如何使用引导程序在 vue 中以相同高度将徽标放在标题旁边?
- android - RecyclerView 上的 SearchView 没有工作如何解决?
- c - 我不知道为什么会出现预期的错误和预期的错误,我也不知道出了什么问题
- python - 正则表达式获取捕获组的大小
- node.js - Alexa技能中Node.js中的发布请求问题
- c# - 如何在 DataGridView 上获得自动调整的列宽以减少填充?