Hmm, there’s a couple of things here possibly to try.
Forewarning: I have not run any Mobile Safari tests on the simulator. I have recently run them on an iphone without fail.
Things to note:
- When starting appium (node), I append the --safari flag.
- I noticed that you do not have an app parameter in your desired capabilities. I list
app = "./apps/SafariLauncher.ipa"
in there. This SafariLauncher.ipa was downloaded from github and provisioned with my company’s standard provisioning so it works on our devices. - Make sure developer mode is turned on in your Safari preferences so that the remote debugger port is open.
- If you are using the simulator or a real device, you MUST run Safari before attempting to use Appium.
A couple of documentation references. You probably know this already, but just in case: