What Somesh has mentioned is useful for finding controls 'inside' the  
composite. See the mailBox() at 
http://swtbot.svn.sourceforge.net/svnroot/swtbot/trunk/examples/rcp/org.rcpmail.test/src/org/rcpmail/MessageCreateTest.java
 
. It essentially finds a tree inside the "Mailboxes" view.

To answer the rest of your question, if it's possible to get to the  
toolbar and menubars of a view. This is not provided yet, and I've  
seen that you've filed bugs for that, thanks! I think that should be  
possible, if I can programatically get a handle to these widgets.

Cheers,
Ketan Padegaonkar,
I blog... therefore I am... http://ketan.padegaonkar.name
http://swtbot.org/ - a functional testing tool for SWT/Eclipse


On 18-Jun-08, at 9:40 AM, Somesh Sasalatti wrote:

> Hi Steve,
> if you can't use the bot directly to find a widget, you can use the  
> ControlFinder or the ChildControlFinder, set a breakpoint, debug and  
> look for anything unique that you can use to identify it. You can  
> then get that widget, cast it if need be and use it. Sometimes this  
> needs to be done in the UI thread so you can use the UIThreadRunnable
>
> Take a look at the rcp test code. it show you how to use the control  
> finder.
> UIThreadRunnable is pretty straight forward too. it's just a wrapper  
> for running anything in the display and provides some utility  
> runnables.
>
> hope this helps
> Somesh
>
>
> On Tue, Jun 17, 2008 at 6:34 PM, Paulin <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to figure out how to access the menu within a view.
>
> I have the view but the menu (which doesn't have a name just the  
> little down arrow) doesn't seem to have a way to be access through  
> the SWTBot.  However on the site it says acess to the controls of  
> the View is provided so I'm thinking I'm missing something.
>
> Any help would be appreciated.
>
> Thanks
> steve



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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