On 26-Jun-08, at 2:09 PM, Eddy POUSSIN wrote: > Hello > > I would like to identify widgets by their name (which I consider more > robust than their value). > SWT Widgets can be named by using widget.setData("name", "myName1"). > > Then, I wonder if SWTBot will support such matchers in future > releases.
Naming widgets the way you mention should be the most robust way to do do things, if you follow some conventions. SWTBot merely crawls the entire UI tree and passes the controls to matchers, if you implement a matcher then you can find the control which you want. See the ControlFinder class and IMatcher interface to see how you can use the two together. -- Ketan ------------------------------------------------------------------------- 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