2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

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

Hello,

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.

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.

Thanks,
Michael

-- 
===============================================================
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
===============================================================