Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有一个 win 32 应用程序,它根据不同的参数发出弹出窗口。
我试图编写一个能够在窗口可见时执行的测试。如果不是,我希望我的测试继续进行而不会失败。
有没有可用的例子?
此致,
您可以使用 (YourWindow).Exists 属性进行检查。
例如,
if (MyPopupWindow.Exists) Mouse.Click(MyPopupWindow.dxDialogOkButton());