On Tue, Jan 6, 2009 at 12:17 AM, Vincent Mahe <vincent.m...@irisa.fr> wrote:
> 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();

Yeah, SWTBotTable works for me.

                // Select PoolHarness
                SWTBotTable table = bot.table();
                int idx = table.indexOf("PoolHarness");
                table.click(idx, 0);

Vincent, thanks for your help.

-- 
Yao
GNU/Linux Developer

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