You could write a matcher as follows: ofType(CDateTime.class, any_other_matchers...)
The resolvers helps to drill down the UI to find all possible widgets. Since the CDateTime is a composite, you'll need to ensure that the CompositeResolver does not drill through the widget and find controls within CDateTime. You may also need to hack into the CompositeResolver to resolve Composites and not instances of Composites, and the matcher above should find you the widget. Reg sending notifications to event handlers, it's a matter of writing a SWTBotCDateTime class to send notifications to the control _within_ -- Ketan On 5/12/08 18:15, S. Winseth wrote: > Hi, > I'm trying to write some new test cases with swtbot 2.0. > > We now have a Nebula CDateTime Widget, that's opened by a Combo Button. > > How can I write a Matcher to get access to this widget? It wasn't necessary > to do something like that for our tests, until now... so I don't know where > to start! > > Thanks, > Winseth ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ 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