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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Shirley Ong, 1 year ago
com.sun.proxy.$Proxy25 cannot be cast to org. openqa.selenium.internal.HasIdentity
via Stack Overflow by monil
, 8 months ago
io.appium.java_client.android.AndroidElement cannot be cast to org.openqa.selenium.internal.HasIdentity
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()
at com.db.sdk.steplib.FXTileUser$$EnhancerByCGLIB$$ed73985$$FastClassByCGLIB$$92dfd8ec.invoke()
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)

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.

Know the solutions? Share your knowledge to help other developers to debug faster.