Alexandre Brisebois
Alexandre Brisebois

Reputation: 6753

Monitor if a popup window is visible in a Coded UI Test for a win32 application

I currently have a win 32 application which emits popup windows based on different parameters.

I an trying to write a test that is able to act if the window is visible. if not I want my test to continue without failing.

Are there any examples available?

Best regards,

Upvotes: 0

Views: 2661

Answers (1)

Babu A
Babu A

Reputation: 76

You can check using (YourWindow).Exists property.

For example,

if (MyPopupWindow.Exists)
    Mouse.Click(MyPopupWindow.dxDialogOkButton());

Upvotes: 1

Related Questions