java.lang.ClassCastException: com.sun.proxy.$Proxy25 cannot be cast to org. openqa.selenium.internal.HasIdentity


Solutions on the web2

Solution icon of googlegroups
via Google Groups by Shirley Ong, 1 year ago
com.sun.proxy.$Proxy25 cannot be cast to org. openqa.selenium.internal.HasIdentity

Solution icon of stackoverflow
io.appium.java_client.android.AndroidElement cannot be cast to org.openqa.selenium.internal.HasIdentity

Stack trace

java.lang.ClassCastException: com.sun.proxy.$Proxy25 cannot be cast to org.
openqa.selenium.internal.HasIdentity
	at io.appium.java_client.TouchAction.tap(TouchAction.java:181)
	at com.db.sdk.core.DBObject.tap(DBObject.java:52)
	at com.db.sdk.screens.FXTileScreen.switchCurrency(FXTileScreen.java:66)
	at com.db.sdk.steplib.FXTileUser.switch_currency(FXTileUser.java:25)
	at com.db.sdk.steplib.FXTileUser$$EnhancerByCGLIB$$ed73985.CGLIB$switch_currency$2(<generated>)
	at com.db.sdk.steplib.FXTileUser$$EnhancerByCGLIB$$ed73985$$FastClassByCGLIB$$92dfd8ec.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at net.thucydides.core.steps.BaseMethodRunner.invokeMethod(BaseMethodRunner.java:10)
	at net.thucydides.core.steps.NormalMethodRunner.invokeMethodAndNotifyFailures(NormalMethodRunner.java:20)
	at net.thucydides.core.steps.StepInterceptor.runNormalMethod(StepInterceptor.java:272)
	at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:127)
	at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:61)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.