Our application responds to URLs from outside the application (IE push notification/email link), and I’d love to be able to test those flows within appium. Our urls are of the form: petrofeed://foo/.
Is there anyway I can send this URL to my application? Or can I somehow trigger our app to launch based on that url? One idea I had was clicking through to that url from safari or something (really thinking outside the norm here )
With openurl I needed to pass the device id (UUID) that appium was running the tests on. There were no methods (that I could find) to get the device id, so I used xcrun simctl list to query for the booted device. Here’s the ruby code I used:
I did find one problem though, the grep pattern to retrieve the device id will not work if ‘iPhone 6 Plus’ is the booted device. It returns ‘Plus’ as the device id. Do you have a new grep pattern that will work when this device is selected.
Calling out to the command line is a suboptimal way of solving this problem. It would be great if this was a part of Appium. For ex. iosDriver.openUrl(“path/to/page”)