I get the following exception when using the ComboItemLocator:
- Code: Select all
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Widget.error(Widget.java:435)
at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:545)
at abbot.tester.swt.ComboTester.getSelectionIndex(ComboTester.java:91)
at com.windowtester.event.selector.swt.ComboSelector$1ItemSelectionCondition.test(ComboSelector.java:92)
at com.windowtester.internal.runtime.condition.ConditionMonitor.test(ConditionMonitor.java:180)
at com.windowtester.runtime.swt.internal.UIContextSWT.wait(UIContextSWT.java:758)
at com.windowtester.event.selector.swt.ComboSelector.verifySelection(ComboSelector.java:114)
at com.windowtester.event.selector.swt.ComboSelector.click(ComboSelector.java:61)
at com.windowtester.event.selector.swt.BasicWidgetSelector.click(BasicWidgetSelector.java:129)
at com.windowtester.runtime.swt.locator.ComboItemLocator.click(ComboItemLocator.java:74)
at com.windowtester.internal.runtime.selector.ClickHelper.doClick(ClickHelper.java:178)
at com.windowtester.internal.runtime.selector.ClickHelper.click(ClickHelper.java:65)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:82)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:293)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:75)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:301)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:68)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:284)
at mytest
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:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at com.windowtester.runtime.common.UITestCaseCommon.access$001(UITestCaseCommon.java:25)
at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:136)
at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:157)
at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:46)
Installed Window Tester version is 3.6.0. It seems that the selection is made although the exception ocurrs.
Is this issue known?
Steffen