Hello Friends,
Following method does not installing app while app is not exist into mobile device
@Test(priority = 0)
public void verify_AppInstalled() {
try {
//String appId="com.google.android.youtube";
if(driver.isAppInstalled("com.materialism.mypunelocals")==true) {
System.out.println("App is already Installed into device");
}
else {
driver.installApp("D:\\myPuneLocal\\mypunelocals.apk");
System.out.println("New App installed into device");
}
}catch (Exception e) {
System.out.println(driver);
System.out.println("Something wrong in app installation");
e.getStackTrace();
}
}
please help me