当显示带有进度条的通知对话框时,Jenny 卡在单击鼠标()

Jemmy strucked at clickMouse() when notification dialog with progressbar are displayed

在自动测试执行期间( 库用于与 Java GUI 元素交互)输入地址数据并按下按钮 'Search for address'。在某些地址显示带有进度条的通知对话框。

尝试设置 differenet 超时,但它无助于识别(超时过期)测试在 searchByAddressButton.clickMouse();

此问题是 SQA.stackexchange.com 的 "Jemmy strucked at clickMouse() when notification dialog with progressbar are displayed" 的副本。请查看完整信息。

解决方案是使用 NoBlock 操作(.pushNoBlock();.pushMenuNoBlock("File|Open");)和手动设置的计时器 ComponentOperator.WaitComponentTimeout 并检查应该出现在 GUI 中的任何新组件:

JemmyProperties.setCurrentTimeout("ComponentOperator.WaitComponentTimeout", 5000); // 5 seconds
...
searchByAddressButton.pushNoBlock();
new JTabbedPaneOperator(flsFrame, 0);   // check that new object has appeared (in 5 seconds)