Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
also this typecast won't work, the result of the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am in the process of migrating from java client v7.x to v8.x and need to update the process of attaching listeners to the instance of
AppiumDriver
.Old v7.x method:
AppiumDriver driver;
(initialization omitted)
driver = EventFiringWebDriverFactory.getEventFiringWebDriver(driver, new AppiumDriverEventListener());
New v8.x method:
AppiumDriver driver;
(initialization omitted)
I am not able to cast the
WebDriver
toAppiumDriver
:java.lang.ClassCastException: class net.bytebuddy.renamed.java.lang.Object$ByteBuddy$4VFg5tn3 cannot be cast to class io.appium.java_client.AppiumDriver (net.bytebuddy.renamed.java.lang.Object$ByteBuddy$4VFg5tn3 is in unnamed module of loader net.bytebuddy.dynamic.loading.ByteArrayClassLoader @27d98bef; io.appium.java_client.AppiumDriver is in unnamed module of loader com.miw.mcb.shared.classloaders.JarClassLoader @1992eaf4)
What is the correct approach to add listeners to an instance of
AppiumDriver
?Beta Was this translation helpful? Give feedback.
All reactions