2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2011


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Reading contents of a JDialog box


  • Subject: [QF-Test] Reading contents of a JDialog box
  • From: "Toyota, Robbie" <RToyota@?.com>
  • Date: Thu, 2 Jun 2011 16:03:26 -0400

Hello,

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,

Robbie