APP_ACTIVITY is not available in MobileCapabilityType?

Hi,

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, “com.myapp.android”);

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

So you should use: AndroidMobileCapabilityType.APP_ACTIVITY .

3 Likes

Thanks a lot for the quick reply :slight_smile: