Yao Qi a écrit :
You must search for the tree | list and then for the tree item | list
item you are interested about in it.

Vincent,

I add code snip shown as follows,

                SWTBotShell s = bot.shell("Main class as entry point"); // Find 
this dialog,
                assertNotNull (s);
                s.activate();

                tree = bot.tree();

got such error.  If I replace Tree by List, got the same error.  Am I
missing something?
Sorry

I should have look at my source code before answer your request for help.

What I do in my test (run Eclipse update site installs) for lists and trees:

       SWTBotTable table = bot.table();
       table.getTableItem("Ganymede Update Site").toggleCheck();
       table.getTableItem("The Eclipse Project Updates").toggleCheck();

and

       SWTBotTreeItem openembeddSubTree = bot.tree().getTreeItem(labelID);
       openembeddSubTree.expand();

--
Cordialement

Vincent MAHÉ

Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71

------------------------------------------------------------------------------
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to