After upgrading to a later version, I am consistently getting the following exception:
org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: The widget TreeItem with text {TreeItem {ChildItem}} was not enabled.
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot Factory.java:398)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot Factory.java:372)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot Factory.java:360)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.waitFor Enabled(AbstractSWTBot.java:609)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.pressSh ortcut(AbstractSWTBot.java:856)

This is a regression that slipped in because of bug 299201. I've fixed
this in trunk immediately.

Would it be OK if I push the next build this weekend, so that I can
spend some time on testing things.

Cheers!

-- Ketan

On 2/8/10 5:56 PM, Brian Yu wrote:
> Hi all,
>
> I had this piece of code with a TreeItem calling a shortcut key, but now
> I am getting an exception when working with build versions after 2.0.0.433.
>
> What this code does is it selects a tree item from the Eclipse
> Properties view and opens up a property dialog by simulating the Enter
> key being hit on this property item:
>
> MyBot.tree().getTreeItem("ParentItem").select("ChildItem"
> ).pressShortcut(Keystrokes.LF).pressShortcut(Keystrokes.LF);
>
>
> After upgrading to a later version, I am consistently getting the
> following exception:
> org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after:
> 5000 ms.: The widget TreeItem with text {TreeItem {ChildItem}} was not
> enabled.
> at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot
> Factory.java:398)
> at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot
> Factory.java:372)
> at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBot
> Factory.java:360)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.waitFor
> Enabled(AbstractSWTBot.java:609)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.pressSh
> ortcut(AbstractSWTBot.java:856)
>
>
> Any thoughts on what may be going on or workarounds?
>
> Thanks,
> Brian
>

Could you let me know when a build including the fix for this issue will be available from the update site? I'm currently using r2.0.0.486 and getting the described errors for TreeItem.pressShortcut().

Sorry this completely slipped my mind, I'll do that tomorrow first thing.

Cheers!

-- Ketan

On 2/18/10 2:03 AM, Georgina Lindsey wrote:
> Hi Ketan,
>
> Could you let me know when a build including the fix for this issue will
> be available from the update site? I'm currently using r2.0.0.486 and
> getting the described errors for TreeItem.pressShortcut().
>
> Thanks,
>
> Georgina

I've pushed the latest build out and it's available on the downloads
page on swtbot.

Enjoy!

-- Ketan

On 2/18/10 3:33 PM, Georgina Lindsey wrote:
> Hi Ketan,
>
> Could you let me know when a build including the fix for this issue will
> be available from the update site? I'm currently using r2.0.0.486 and
> getting the described errors for TreeItem.pressShortcut().
>
> Thanks,
>
> Georgina