Assert windows closed in Coded UI Tests

2019-08-17 12:36发布

I'm developing a set of coded UI tests for a WPF project. Does anyone know how to assert that a window was closed? I can't seem to check any properties of the window after it is gone. Should I assert the UI element is null, maybe?

1条回答
老娘就宠你
2楼-- · 2019-08-17 13:18

The UITestControl class has a method called WaitForControlNotExist that did the trick!

查看更多
登录 后发表回答