String packageName = " com.test.android.automationchanges";
String startActivity = “com.test.android.SplashActivity”;
String waitActivity = “com.test.android.activity.MSignupActivity”;
capabilities.setCapability(“androidPackage”, packageName);
capabilities.setCapability(“androidActivity”, startActivity);
capabilities.setCapability(“androidWaitActivity”, waitActivity);
015-08-20 07:55:16:490 - error: Failed to start an Appium session, err was: Error: com.test.android.automationchanges/com.test.android.activity.MSignupActivity never started. Current: com.test.android.automationchanges/com.test.android.activity.MSignupActivity
String packageName = “com.test.android.automationchanges”;
String startActivity = “com.test.android.SplashActivity”;
String waitActivity = “com.test.android.activity.MSignupActivity”;
capabilities.setCapability(“appPackage”, packageName);
capabilities.setCapability(“appActivity”, startActivity);
capabilities.setCapability(“appWaitActivity”, waitActivity);
// instead of android it’s app
capabilities.setCapability("automationName", "Appium");
capabilities.setCapability("platformName", "Android");
//capabilities.setCapability("platformVersion", "5.0");
capabilities.setCapability("deviceName", "emulator");/
capabilities.setCapability("appPackage", packageName);
capabilities.setCapability("appActivity", startActivity);
capabilities.setCapability("appWaitActivity", waitActivity);
seems okay ?? since its still not working.
The app activity is launched but the same is not acknowledged by appium. It returns the same error.
I guess appium started this activity “com.test.android.SplashActivity” successfully but was unable to found this activity “com.test.android.activity.MSignupActivity” after SplashActivity gets launched in a default wait time.
You can try like
- Make sure activity name “com.test.android.activity.MSignupActivity” is correct no typo or error in name
- Make sure that .MSignupActivity launches immediately after .SplashActivity
- Also if you want to wait for home page load you can use implicit wait for any element on page or any class used on page.