java.lang.ClassCastException

com.sun.proxy.$Proxy6 cannot be cast to org.openqa.selenium.remote.RemoteWebElement

Solutions on the web19040

  • com.sun.proxy.$Proxy6 cannot be cast to org.openqa.selenium.remote.RemoteWebElement
  • com.sun.proxy.$Proxy6 cannot be cast to com.AOProgramming.AOProgrammingImpl
  • via Stack Overflow by Ak17
    , 1 year ago
    com.sun.proxy.$Proxy6 cannot be cast to org.openqa.selenium.By
  • Stack trace

    • java.lang.ClassCastException: com.sun.proxy.$Proxy6 cannot be cast to org.openqa.selenium.remote.RemoteWebElement at io.appium.java_client.TouchAction.longPress(TouchAction.java:207) at com.codeborne.CalculatorTest.testCalculator(CalculatorTest.java:65)

    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.