On 31-Jul-08, at 12:01 AM, Mohamed Amine LIMAME wrote: > Hi Ketan, > I am using the following code to reach the combo > > SWTEclipseBot bot = new SWTEclipseBot(); > bot.comboBoxWithLabel("Class:").setSelection(2); > > For the dialog's code I must have permission from my manager because > the > internal law of our company doesn't allow any employee to provide a > code for > persons outside the compagnie. > > Can you just explain to me what is the strategy used by SWTbot > Finder to > locate the widget. It will take a long time if I will try to > understand it > by myself.
SWTBot walks over the UI tree passing each widget to a matcher. I'd recommend turning on logging as described here: http://www.nabble.com/Re%3A-How-to-turn-on-%28or-configure%29-logging-for-SWT-Bot--p18069832.html That way swtbot will log information as it finds widgets and matches them against the matcher. You'll also need to put log4j.xml in your test plugin sources directory. -- Ketan ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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