I have just started to learn Appium automation through videos in youtube. However I got struck while trying to automate hybrid app using Java client. Kindly let me know if you can assist me in resolving this issue. I have been stuck for more than 5 days
I have got struck in below line of code.
System.out.println(âSetting Driverâ);
URL add = new URL(âhttp://127.0.0.1:4723/wd/hubâ);
System.out.println(âDone setting URLâ);
driver = new AndroidDriver(add, cap);
System.out.println(âDriver SETâ);
What i can see in the console is âSetting Dtiverâ and âDone setting URLâ is getting printed and âDriver SETâ is not getting printed. which means my Android Driver instantiation is not happening properly.
The Appium server has started properly and App gets launched as well and the final logs in the server where it gets struck is as below :
info: [debug] [BOOTSTRAP] [debug] Returning result: {âstatusâ:0,âvalueâ:false}
info: [debug] Device is at API Level 23
info: [debug] executing cmd: D:\Appium\AndroidSDK\platform-tools\adb.exe -s 7TYTWCMJOBMZIZVC shell âam start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.MyApp/MyAppâ
info: [debug] We tried to start an activity that doesnât exist, retrying with . prepended to activity
info: [debug] Getting device API level
info: [debug] executing cmd: D:\Appium\AndroidSDK\platform-tools\adb.exe -s 7TYTWCMJOBMZIZVC shell âgetprop ro.build.version.sdkâ
info: [debug] Device is at API Level 23
info: [debug] executing cmd: D:\Appium\AndroidSDK\platform-tools\adb.exe -s 7TYTWCMJOBMZIZVC shell âam start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.MyApp/.MyAppâ
info: [debug] Waiting for pkg âcom.MyAppâ and activity âMyAppâ to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: D:\Appium\AndroidSDK\platform-tools\adb.exe -s 7TYTWCMJOBMZIZVC shell âdumpsys window windowsâ
info: â POST /wd/hub/session - - ms - -
Below is the System Details :
Windows 7, Appium Version : 1.4.16.1
I have set all required capabilities in the code (AppPackage, AppActivity, AppWaitActivity, DeviceName)
Kindly let me know if any more details are required.