java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement

GitHub | iriszhang1986 | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    can't find element when use 5.0.0 beta1,wrong:"java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement"

    GitHub | 2 months ago | iriszhang1986
    java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement
  2. 0
    samebug tip
    You close Selenium Webdriver before the tests finish. Use @BeforeSuite and @AfterSuite.
  3. 0

    Switch context appium 1.0 java

    GitHub | 3 years ago | evgenytkachenko
    driver.version: AppiumDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I added gson dependency still indicate java.lang.NoSuchMethodError

    GitHub | 3 years ago | summerbuild
    java.lang.NoSuchMethodError: org.openqa.selenium.remote.ErrorHandler.<init>(Lorg/openqa/selenium/remote/ErrorCodes;Z)V
  6. 0

    Road To Automation: Road to setup and create first Appium Webdriver android script in Java

    blogspot.com | 4 months ago
    java.lang.IllegalArgumentException: No enum constant org.openqa.selenium.Platform.WINDOWS 7

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at com.haimi.HMLibrary.keywords.swipeTest.element()
    2. com.haimi.HMLibrary
      swipeTest.element
      1. com.haimi.HMLibrary.keywords.swipeTest.element(swipeTest.java:52)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    4. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      7. org.testng.TestRunner.privateRun(TestRunner.java:767)
      8. org.testng.TestRunner.run(TestRunner.java:617)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:335)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:240)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      17. org.testng.TestNG.run(TestNG.java:1057)
      18. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
      19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
      20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
      20 frames