Skip to content

How to start an Activity using mobile: startActivity with OptionalIntentArguments?  #2127

@cmccarthyIrl

Description

@cmccarthyIrl

Description

After updating my Appium dependency to version 9.1.0, I am no longer able to use ((AndroidDriver) driver).startActivty(activity)

Environment

  • Java client build version: 9.1.0
  • Appium server version: 2.4.1
  • Desktop OS/version used to run Appium if necessary: Mac Ventura 13.5.2
  • Mobile platform/version under test: Android 12
  • Real device or emulator/simulator: Real device

Details

With Appium version 8.5.1, I was able to start my Android Activity using the following approach:

Activity activity = new Activity("com.android.settings", ".applications.InstalledAppDetails")
.setOptionalIntentArguments("package:com.android.chrome");
((AndroidDriver) DriverManager.getDriver()).startActivity(activity);

How can I launch the package:com.android.chrome activity using mobile: startActivity ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions