App Activity - can't control

Hello, friends!

I’m testing native app. My app have several activites: - this is login page - this is main page

My first test emulate login process. I set Capability (appActivity) to When login test finished, i’m launching next one but it doesn’t work because new activity is launched (

I’m launching tests form JUnt tests suites.

How can i switch to another activity from test?

Im using Appium java client 5.0.2, JUnit and Junit test suites.


can anyone help?

Im getting error when trying to run driver.currentActivity() or driver.getCurrentPackage();

Appium log says:

Encountered internal error running command: Error: Could not proxy. Proxy error: Could not proxy command to remote server. Original error: 404 - “”


driver.startActivity(new Activity(androidPackage, androidStartActivity));