Hm. If I select the "New > Project..." menu item and then select
"General > Project in" the tree view in Eclipse, the Next > button only
becomes active but the action associated with the "Next >" button is not
automatically executed. I have to click on the "Next >" button for this
to happen.

I am observing that SWTBot behaves differently in this case. The action
associated with the "Next >" button is automatically executed.

I would have expected that SWTBot behaves more like the UI interaction
and that I have to click the "Next >" button explicitly. 
 
On Sat, 2008-07-05 at 11:28 +0530, Ketan Padegaonkar wrote:

> 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
> SWTBot-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/swtbot-users
> http://swtbot.org/ - a functional testing tool for SWT/Eclipse
> 
-------------------------------------------------------------------------
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
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