Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » TreeItem.pressShortcut() stopped working(TreeItem.pressShortcut() stopped working after build version 2.0.0.433)
TreeItem.pressShortcut() stopped working [message #513132] Mon, 08 February 2010 20:56 Go to next message
Brian Yu is currently offline Brian Yu
Messages: 10
Registered: July 2009
Junior Member
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
Re: TreeItem.pressShortcut() stopped working [message #513143 is a reply to message #513132] Mon, 08 February 2010 17:28 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi Brian,

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
>
Re: TreeItem.pressShortcut() stopped working [message #513342 is a reply to message #513143] Tue, 09 February 2010 14:26 Go to previous messageGo to next message
Brian Yu is currently offline Brian Yu
Messages: 10
Registered: July 2009
Junior Member
Great sounds good. Thanks Ketan.

Regards,
Brian
Re: TreeItem.pressShortcut() stopped working [message #515261 is a reply to message #513143] Thu, 18 February 2010 05:03 Go to previous messageGo to next message
Georgina Lindsey is currently offline Georgina Lindsey
Messages: 1
Registered: February 2010
Junior Member
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
Re: TreeItem.pressShortcut() stopped working [message #515291 is a reply to message #515261] Thu, 18 February 2010 05:49 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
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
Re: TreeItem.pressShortcut() stopped working [message #515803 is a reply to message #515261] Sat, 20 February 2010 23:13 Go to previous message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
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
Previous Topic:Renaming a node in a tree
Next Topic:SWTBotMenu
Goto Forum:
  


Current Time: Tue Sep 02 05:19:43 EDT 2014

Powered by FUDForum. Page generated in 0.01913 seconds