For instance, we have scenarios that require TouchID to be enabled and we have scenarios that require TouchID to be disabled. Appium itself doesn't expose such capabilities, so I'm wondering if it is possible to define custom capabilities for a device.
If it's not possible to do with Appium itself, I'm happy to put Selenium Grid in the middle, in case that would provide such functionality.
We are testing both locally and in the cloud, using Perfecto, so as a side question I would like to know if Perfecto or any other cloud service provides this capability.
So, if I define the following capability when launching my Appium session:
capabilities.touchID = 'enabled';
I would get a device where TouchID has been enabled.
Also, TouchID is just an example, we have a number of things we need custom capabilities for.