addMedia
Add images or videos to the device gallery for media picker testing.
Last updated
Add images or videos to the device gallery for media picker testing.
The addMedia command adds one or more media files from your workspace to the device's gallery on both Android and iOS. This makes the files accessible to your application during a test flow.
The command accepts a list of strings, where each string is the relative path to a media file in your workspace.
The following example adds a PNG image and an MP4 video to the device's gallery.
- addMedia:
- "./assets/foo.png"
- "./assets/foo.mp4"This command supports the following file formats:
PNG
JPEG
JPG
GIF
MP4
Last updated