i want to use StartActivity() to open an activity in the current app but failed!!!
who can help me?
my capabilities:
capabilities.setCapability(MobileCapabilityType.APP_PACKAGE,“com.happyteam.dubbingshow”);
capabilities.setCapability(MobileCapabilityType.APP_ACTIVITY,“com.happyteam.dubbingshow.ui.StartActivity”);
my currentActivity is “.act.user.MainActivity” , i want to start activity:".act.home.HomeActivity"
so i use this method: driver.startActivity(“com.happyteam.dubbingshow”, “.act.home.HomeActivity”);
the log:
org.openqa.selenium.WebDriverException: Unable to launch the app: Error: Permission to start activity denied. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.21 seconds