-3

How to select images for iOS device library using DETOX ?

jitendra l
  • 21
  • 1
  • Welcome to StackOverflow. Please see this article on how to write a proper question: https://stackoverflow.com/help/how-to-ask – koen Jun 07 '18 at 15:19

1 Answers1

1

Unfortunately this is something that the Detox are unable to implement. LeoNatan at Detox explains:

UIImagePickerController runs in a different process, thus we cannot control it

Your best bet is to mock the image picker API to just return some default image.

A quick search also turned up this post E2E: Select an image from a UIImagePickerController with Wix Detox, which as some work arounds that may work for iOS 9 and 10, but it is noted that from iOS 11 and onwards the UIImagePickerController is in a separate process and it cannot be accessed. Again mocking the API seems to be the general consensus.

Community
  • 1
  • 1
Andrew
  • 26,706
  • 9
  • 85
  • 101