• Post Reply Bookmark Topic Watch Topic
  • New Topic

org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget.

 
Mukund Patil
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have facing some problem while RMB on item in JTreeTable, SWT-BOT test code as below-

ERROR: 13:33:04,807 - TcLogger$IC_PrintStream.logButCheckForException:690
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget.
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntilWidgetAppears(SWTBotFactory.java:348)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.menu(SWTBotFactory.java:257)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.menu(SWTBotFactory.java:208)
at com.example.test.project.tests.CreateScope.openScopeDialog(CreateScope.java:211)
at com.example.test.project.tests.CreateScope.sendToMPP(CreateScope.java:167)
at com.example.test.project.tests.CreateScope.test(CreateScope.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)

Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Could not find a menu within the shell 'Shell with text {Shell {...}}' matching 'with mnemonic 'Open new Scope''
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:398)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:372)



and the code is






I have debugged the code and found there are only two menus (refresh and sendto) available after RMB on row in JTreeTable .

Does anyone of you have faced such issue?

Please provide your thought on it.

-Mukund
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!