java.lang.ClassCastException

org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement


Solutions on the web19532

Solution icon of github
org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement

Solution icon of googlegroups
via Google Groups by sunny sachdeva, 7 months ago
org.openqa.selenium.remote.RemoteWebElement cannot be cast to org.openqa.selenium.RenderedWebElement

Solution icon of googlegroups
via Google Groups by Sasi kumar M, 7 months ago
org.openqa.selenium.remote.RemoteWebElement cannot be cast to org.uiautomation.ios.client.uiamodels.impl.RemoteUIAWebView

Solution icon of github
com.sun.proxy.$Proxy6 cannot be cast to org.openqa.selenium.remote.RemoteWebElement

Solution icon of stackoverflow
org.openqa.selenium.remote.RemoteWebElement cannot be cast to java.util.List

Solution icon of web
via iteye.com by Unknown author, 1 year ago
cannot be cast to

Solution icon of web
cannot be cast to java.lang.String

Solution icon of googlegroups
via Google Groups by Tom Chiverton, 2 months ago
com.intergral.fusionreactor.jdbc.ResultSetSurrogate cannot be cast to

Solution icon of web
via oracle.com by Unknown author, 6 months ago
com.microsoft.sqlserver.jdbc.SQLServerConnection cannot be cast to

Solution icon of bugzilla
[...] cannot be cast to org.eclipse.zest.core.viewers.IGraphEntityContentProvider

Stack trace

  • java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement at com.haimi.HMLibrary.keywords.swipeTest.element(swipeTest.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:335) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

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.