On 05-Jul-08, at 11:16 AM, Joachim F. Kainz wrote:

> After having fun with SWTBotTreeItem.expand() I have observed some  
> behavior I did not expect with the SWTBotTreeItem.select() method.  
> The code included below selects a the General > Project node in "New  
> Project" wizard. The select call also triggers the "Next >" button  
> (as if I selected the button and clicked it). Stepping through this  
> in the debugger seems to show that the button is actually triggered  
> by the "notify(SWT.DefaultSelection)" statement in  
> SWTBodTreeItem#notifySelect().
>
> I am not complaining about it. This actually saves me having to code  
> a few statement, but I was wondering if this behavior is intentional  
> or this is something that just happens in my environment...

I think SWTBot is acting naturally. As a human being when I click on a  
tree node, it generates a selection event, and the Next/Finish buttons  
in the wizard are hooked into this event. Is this not the expected  
behavior out of SWTBot ?

All that SWTBot does is "fool" things around by sending whatever  
notifications you ask it to. Notifications is all that your program  
cares about, really ;)

-- Ketan


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
SWTBot-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to