org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Regression tests not running
    via GitHub by rajkuma1
    ,
  • SWTBot - Wait for MessageBox
    via Stack Overflow by Ethon
    ,
  • Running com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.AllTcServerUiTests. Only one of the tests pass i.e. TcServerNewServerWizardUiTest.testWithExistingServerWithoutExistingInstance(). The rest of them fail with 2 types of error: #testWithoutExistingServerWithExistingInstance, #testFailedDeployment and #testWithoutExistingServerWithoutExistingInstance: {code} org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: The shell 'Java Type Hierarchy - SpringSource Tool Suite' did not activate at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:398) at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:372) at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:360) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.openPreferences(TcServerNewServerWizardUiTest.java:646) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.deleteAllRuntimeConfigurations(TcServerNewServerWizardUiTest.java:483) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.doServerCreationTest(TcServerNewServerWizardUiTest.java:147) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.testWithoutExistingServerWithExistingInstance(TcServerNewServerWizardUiTest.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.eclipse.swtbot.swt.finder.SWTBotTestCase.runBare(SWTBotTestCase.java:228) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64) at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117) at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71) at java.lang.Thread.run(Unknown Source) {code} #testWithExistingServerExistingInstance {code} java.lang.RuntimeException: Item `spring-insight-instance' not found in combo box. at org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo._setSelection(SWTBotCombo.java:110) at org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo.setSelection(SWTBotCombo.java:92) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.selectTcServerExistingInstance(TcServerNewServerWizardUiTest.java:284) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.doServerCreationTest(TcServerNewServerWizardUiTest.java:173) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.testWithExistingServerExistingInstance(TcServerNewServerWizardUiTest.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.eclipse.swtbot.swt.finder.SWTBotTestCase.runBare(SWTBotTestCase.java:228) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64) at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117) at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71) at java.lang.Thread.run(Unknown Source) {code}
    via by Tomasz Zarna,
  • Running com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.AllTcServerUiTests. Only one of the tests pass i.e. TcServerNewServerWizardUiTest.testWithExistingServerWithoutExistingInstance(). The rest of them fail with 2 types of error: #testWithoutExistingServerWithExistingInstance, #testFailedDeployment and #testWithoutExistingServerWithoutExistingInstance: {code} org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: The shell 'Java Type Hierarchy - SpringSource Tool Suite' did not activate at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:398) at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:372) at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:360) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.openPreferences(TcServerNewServerWizardUiTest.java:646) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.deleteAllRuntimeConfigurations(TcServerNewServerWizardUiTest.java:483) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.doServerCreationTest(TcServerNewServerWizardUiTest.java:147) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.testWithoutExistingServerWithExistingInstance(TcServerNewServerWizardUiTest.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.eclipse.swtbot.swt.finder.SWTBotTestCase.runBare(SWTBotTestCase.java:228) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64) at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117) at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71) at java.lang.Thread.run(Unknown Source) {code} #testWithExistingServerExistingInstance {code} java.lang.RuntimeException: Item `spring-insight-instance' not found in combo box. at org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo._setSelection(SWTBotCombo.java:110) at org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo.setSelection(SWTBotCombo.java:92) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.selectTcServerExistingInstance(TcServerNewServerWizardUiTest.java:284) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.doServerCreationTest(TcServerNewServerWizardUiTest.java:173) at com.vmware.vfabric.ide.eclipse.tcserver.tests.ui.TcServerNewServerWizardUiTest.testWithExistingServerExistingInstance(TcServerNewServerWizardUiTest.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at org.eclipse.swtbot.swt.finder.SWTBotTestCase.runBare(SWTBotTestCase.java:228) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at junit.framework.TestSuite.runTest(TestSuite.java:243) at junit.framework.TestSuite.run(TestSuite.java:238) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64) at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117) at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71) at java.lang.Thread.run(Unknown Source) {code}
    via by Tomasz Zarna,
  • GitHub comment 142#1217931
    via GitHub by reprogrammer
    ,
  • Testing SWT applicaiton using SWTBot:
    via Stack Overflow by Anand
    ,
    • 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 org.eclipse.swtbot.swt.finder.SWTBotFactory.menu(SWTBotFactory.java:198) at edu.illinois.codingspectator.tests.CodingSpectatorTest.canCreateANewJavaClass(CodingSpectatorTest.java:143) at edu.illinois.codingspectator.tests.CodingSpectatorTest.canSetupProject(CodingSpectatorTest.java:274) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner.run(SWTBotJunit4ClassRunner.java:54) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64) at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117) at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71) at java.lang.Thread.run(Thread.java:662) 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 {Refactoring}}' matching 'with mnemonic 'File'' at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:398) at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:372) at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:360) at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntilWidgetAppears(SWTBotFactory.java:346) ... 32 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,