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
wreed
2
Try adding the path to the app on your local filesystem here:
https://appium.io/docs/en/writing-running-appium/caps/
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
wreed
4
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 )
wreed
6
That’s probably the best you can do for alerts.
2 Likes