Hi,
I am using latest appium 1.6.5 and java - client : 5.0.0-BETA8
I was previously using driver.startActivity using app package and app activity (where were string arguments) and it was working as expected.
Now with above version - looks like all startActivity has been deprecated except driver.startActivity(appActivity) - where appActivity is of type Activity.
I have activity of type string and it throws class cast exception when I try to cast string to Activity.
How do i pass the appactivity of type activity ?
Hello @Aleksei
I am trying to understand this code
Activity activity = new Activity(āapp package goes hereā, āapp activity goes hereā);
So the above we pass the new activity package name?
If we have passed the new app packagename activity name then why we need the below
activity.setAppWaitPackage(āapp wait package goes hereā);
activity.setAppWaitActivity(āapp wait activity goes hereā);
What does the below do?
activity.setStopApp(false);
java.lang.ClassCastException: class io.appium.java_client.AppiumDriver cannot be cast to class io.appium.java_client.android.AndroidDriver (io.appium.java_client.AppiumDriver and io.appium.java_client.android.AndroidDriver are in unnamed module of loader āappā)