Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

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 2012

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

[QF-Test] Check tooltip of list elements

  • Subject: [QF-Test] Check tooltip of list elements
  • From: Michael Kommer <michael.kommer@?.de>
  • Date: Thu, 09 Aug 2012 10:38:27 +0200


I checked previous posts to see if anyone already encountered this problem.

We have to check the tooltip of the elements in a JList (not the tooltip of the List itself). I tried this with a small
groovy Script.

component = rc.getComponent("theList")
listItems = component.getComponents()
[... .getToolTipText() etc. ...]

If I do so i receive the cellRenderer which holds no information of tooltips or list elements.
Also the cellRenderer has no method "getToolTipText()"

component.getToolTipText() works fine for the list tooltip. But in this case the list element tooltip is required and
not the list tooltip.
Maybe the .getComponents() method isn´t the right one to get to the list element objects but can´t see any other solutions.


Michael Kommer
Consultant Software-Testsysteme
E-Mail: michael.kommer@?.de
imbus AG, Kleinseebacher Str. 9, 91096 Möhrendorf, DEUTSCHLAND
Tel. +49 9131 7518-0, Fax +49 9131 7518-50
info@?.de http://www.imbus.de

Vorsitzender des Aufsichtsrates: Wolfgang Wieser
Vorstand: Tilo Linz, Bernd Nossem, Thomas Roßner, Jörg Schulten
Sitz der Gesellschaft: Möhrendorf
Registergericht: Fürth/Bay, HRB 8365

Videos Downloads Documentation Buy Free Trial