WDA is deleted and test failed if i use capabilities of app

i used these capabilities

cap.setCapability(MobileCapabilityType.APP, “”);

cap.setCapability(MobileCapabilityType.FULL_RESET, false);
cap.setCapability(MobileCapabilityType.NO_RESET, true);

	            // WDA 
	            cap.setCapability(IOSMobileCapabilityType.USE_PREBUILT_WDA, true); 
	            cap.setCapability(IOSMobileCapabilityType.USE_NEW_WDA, false); 

then when run these it delete WDA and session failed

but when capability by bundle id >> it success

i need to run by app not bundle id

Try adding the path to the app on your local filesystem here:


i already add the path of app but forget to write >> here
cap.setCapability(MobileCapabilityType.APP, config.getProperty(“APP”))

in configuration file >> i add the path >>App=/src/test/resources/excutes/Check-in.ipa

Ok, if you’ve followed that link and added as it says it should work. Can you post the error?

now i changed the path to be absolute path and it is working

can you have idea how to speed the handling of alerts and permissions because it takes long time

i use
cap.setCapability(IOSMobileCapabilityType. AUTO_ACCEPT_ALERTS , true )

That’s probably the best you can do for alerts.