I have an application that will pop up a JDialog box with a message that either says “success”, or will return an error, when I press a Save button.
I would like to have QF-Test fetch the text of the dialog box, but the problem is that it names the text label within the jdialog box something different, depending on the text.
So for example if the label in the message box says “success”, it will name the JLabel labelSuccess. If it says “incorrect name”, it will name the label labelIncorrect_name.
Is there a way that I can access any label values within the dialog box, without needing to know the actual name of the label? For example if I had a JDialog called “dialogError_message”, could I do something like Fetch dialogError_message.first_child() or something?
Thanks for any input,