classcast exception in widgetreference

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

classcast exception in widgetreference

Postby sanjay d c » Wed May 25, 2011 1:48 am

Hi All,

I am get the classcast exception in widgetrefereence to locate a textfield.

Please find the trace below:

java.lang.ClassCastException: com.windowtester.runtime.swt.internal.widgets.ScrollableReference cannot be cast to com.windowtester.runtime.locator.WidgetReference
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 junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.windowtester.runtime.common.UITestCaseCommon.access$0(UITestCaseCommon.java:1)
at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:130)
at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:151)
at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:40)

Please help me to solve the above problem .
sanjay d c
 
Posts: 3
Joined: Wed May 25, 2011 1:26 am

Re: classcast exception in widgetreference

Postby gnebling » Wed May 25, 2011 9:07 am

gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron