Some clarifications: On 08-Jul-08, at 12:00 AM, Hans Schwaebli wrote: > Currently SWTBot simply returns the first widget in the collection > if no index has been passed. This means that it is pure luck whether > the right widget is found or not. You cannot be sure. And next day > another widget could be returned, depending on internal search > algorithms or UI layout. A test could work one day and break on > another day without any apparent change.
SWTBot merely walks over the entire UI using Depth First Traversal. This guarantees that first widget that SWTBot finds will _always_ be the first widget on the screen that you can find, unless of course someone does some magical layouts (which would be rare). -- 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