Unable to get access on Infragistics.Win.UltraMessageBox.MessageBoxDialog buttons.
I'm facing a problem to recognize the buttons of Infragistics.Win.UltraMessageBox.MessageBoxDialog. I have attached the image of message box and its ClrFullClassName.
How may I Click on OK button or any other button options of similar dialog.
Solved! Go to Solution.
Hi @mugheessiddiqui,
I don't see the UltraMessageBox control in the list of the supported Infragistics controls:
You can try using the Object Mapping options to make TestComplete treat this control as a supported one. This option is described in the Recognizing Custom Controls section of the above topic.
You can check the setup options mentioned in this article and make sure they've been implemented:
You can also try recording a test and clicking on that button and see what object information TestComplete gives you at that time.
Sorry It does not help.
What does not help? You have to be specific in your descriptions for us to tell what's going on.
Is your problem specifically with identifying the object? Or is it more about making sure you click the OK button or the Yes button, etc, where the buttons may have different labels?
If the latter, that is a matter of making sure that you identify the object more precisely. If there is more than one object on the form with the same ClrFullClassName, you need to add another property to your identification to distinguish one from the other. Caption or Label or something like that might be what you need to use. Edit the NameMapping of the object and add an additional property.
Hi @mugheessiddiqui , please elaborate on your issue for the Commmunity to be able to help you better. Thank you.
I'm using TestComplete 12.6 version
My problem is Test Complete does not recognizing the button of Infragistics.Win.UltraMessageBox.MessageBoxDialog. It also does not provide method to click on specific button. I have attached two more images of Infragistics.Win.UltraMessageBox where you can see its properties and Methods.
I have using MessageBoxControl.Keys("[Enter]") to get rid of the message box which is the workarround but not the proper solution.
1) "Enter" is certainly a proper solution. Many people who don't use a mouse will use enter for clicking a button, it's perfectly good. Spacebar works as well.
2) I asked you to try recording a test where you click on the button. Please show us the code that is produced from that recording. It may give us more details about your issue.
Here is the recorded script
Aliases.App.MessageBoxDialog.MessageBoxControl.Click(104, 88);
you said Keys("[Enter]") is proper solution, I'm worried about a dialog if there would be Yes/No/Cancel option then how will I perform the action?
I don't know how your app is set up, but generally you can use Tab to move between buttons and Enter or Space to press the button.
Did you try updating your NameMapping as @tristaanogre suggested above? What happened then?
Subject | Author | Latest Post |
---|---|---|