@Override
public IOSCapabilities getCapabilities(){
IOSCapabilities res = super.getCapabilities();
try {
ProvisioningProfileInfo info = ProvisioningService.getProfile(getEmbeddedProfile());
res.setCapability(IOSCapabilities.PROVISIONNED,info.getDevices());
return res;
} catch (Exception e) {
throw new WebDriverException("Cannot extract probile. corrupted ipa ?");
}
}