rshahwan
13 years agoOccasional Contributor
Access button of WPF Message Box (DevExpress.Xpf.Core.DXMessageBox)
HI
I'm testing a desktop application that uses DevExpress WPF 3rd party controls. i'm having a difficulty to let TestComplete click "Yes" button on the confirmation message.
My test Case is
1. Click Delete button
2. Click Yes on confirmation message
Test complete was able to find the Message Box itself and it was able to find the text inside the message box.... but how i want to make test compelte click on the "Yes" or "No" button.
here is my code
var popup = getPopupWindow(app);
if (popup !=null)
{
popup.DoButtonClick(popup.messageBoxButtons);
}
Test complete failed to do the button click
i appreciate any help i can get....
Thanks
Rami
I'm testing a desktop application that uses DevExpress WPF 3rd party controls. i'm having a difficulty to let TestComplete click "Yes" button on the confirmation message.
My test Case is
1. Click Delete button
2. Click Yes on confirmation message
Test complete was able to find the Message Box itself and it was able to find the text inside the message box.... but how i want to make test compelte click on the "Yes" or "No" button.
here is my code
var popup = getPopupWindow(app);
if (popup !=null)
{
popup.DoButtonClick(popup.messageBoxButtons);
}
Test complete failed to do the button click
i appreciate any help i can get....
Thanks
Rami