question

ramarb avatar image
ramarb asked ramarb posted

swing: retrieving label from a panel

I have a panel in appalication and some label rest on it. I want to fetch that label name. Snapshot does not help.

 

The panel shows as below in an interactive session window:

- Panel 

 - CtrlButtonStatusPanel

 

Let me know if you need more information.

Thanks.

iTestGUI Testing(Web-Java Swing-etc)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
PreetS avatar image
PreetS answered PreetS posted

It is likely a custom label because it seems to extend from the "panel" object.

Can you do "describe" on the control and  see if you get the text value from it. Snapshot will not have that text.

 

 

If describe does not help, then the best solution would be to use iTestable. The following example deals with the exact scenario as yours:

http://forums.fanfaresoftware.com/fnfr/board/message?board.id=GUI&message.id=1

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ramarb avatar image ramarb commented ·
Hmm. its a customized panel; nor describe works.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.