APP_ACTIVITY is not available in MobileCapabilityType?


I’m using latest Appium java client 4.0. I want to set the package name using below statement but APP_ACTIVITY is not available in MobileCapabilityType. Hence the error when using below statement. Please help.

desiredCapabilities.setCapability(MobileCapabilityType.APP_ACTIVITY, “”);

@Bharath_Madishetti: From 4.0, this is moved to specific to android package:

So you should use: AndroidMobileCapabilityType.APP_ACTIVITY .


Thanks a lot for the quick reply :slight_smile: