Hello,
  I'm having a problem with activating an SWT File Open Dialog.
  This is opened from a standard Eclipse import wizard.
  Basically the shell is not being detected by SWTBot.

  The relevant code is:

  // click the button which opens the wizard
  bot.button(UI_STANDARD_NAMES.ADD_BUTTON_NAME).click();

// using the latest code in SVN
bot.waitUntil(new ShellIsActive("Open"));

//never get here due to timeout
SWTBotShell [] shells = bot.shells();

If I comment out the bot.waitUntil, and put in some Bot.sleep(5000) statement,
  I can see the dialog screen, but the shells [] only has 2 elements -  
the application window and the wizard the dialog was launched from.

How can I progress from here? Any suggestions welcome.

Incidentally, I believe there might be a bug in the class ShellIsActive -
  the statements
  Assert.isLegal(StringUtils.isNull(text), "The shell text was null");
                Assert.isLegal(StringUtils.isEmpty(text), "The shell text was 
empty");
in the constructor
  fail if a valid string is passed in - if the assertions are negated  
the constructor completes successfully.

Thanks

Richard


-- 
Dr Richard Adams
Senior Software Developer,
Computational Systems Biology Group,
University of Edinburgh
Tel: 0131 650 8281
email : [EMAIL PROTECTED]

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



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

Reply via email to