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(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at junit.framework.TestCase.runTest(
at junit.framework.TestCase.runBare(
at com.windowtester.runtime.common.UITestCaseCommon.access$0(
at com.windowtester.runtime.common.UITestCaseCommon$
at com.windowtester.runtime.common.UITestCaseCommon$
at com.windowtester.internal.runtime.junit.core.SequenceRunner$

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

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