ActivateApp command is not working | Appium Forum
P
Pavan Posted on 17/05/2020

Hi ,

activateApp() mobile command is not working. Getting below error.

Note - When i try to open same app using launchApp command it works. Also the app which i am using foe activateApp is already installed on my laptop as well.

 

Test data6May 17, 2020 12:30:48 AM io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: W3C
Test data7a
message initaited
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
at io.appium.java_client.MobileCommand.prepareArguments(MobileCommand.java:374)
at io.appium.java_client.InteractsWithApps.activateApp(InteractsWithApps.java:167)
at io.appium.java_client.InteractsWithApps.activateApp(InteractsWithApps.java:150)
at mobileAppCommands.main(mobileAppCommands.java:53)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more



P
Pavan Replied on 17/05/2020

Note - When i try to open same app using launchApp command it works. Also the app which i am using foe activateApp is already installed on my mobile device as well.

I tried activateApp command with with manu other applications like messages etc but it is not working.

Please find attached appuim server logs.


A
Ashish Thakur Replied on 18/05/2020

Can you attach your code out here please.


P
Pavan Replied on 18/05/2020

Please find the attached code.

 


P
Pavan Replied on 23/05/2020

Hi Team,

Can you please update on this issue.

Thanks !


P
Pavan Replied on 24/05/2020

Hi Team,

I have troubelshoot the issue and it got resolved after adding commons-lang3-3.8.1.jar to the project.

you can close this ticket.

 


A
Ashish Thakur Replied on 26/05/2020

Yes.... I came to know now

You need this jar

May be you should use maven. It brings in all jars


Related Posts