shareSheet¶
| Tool | What it does | Platforms | Needs |
|---|---|---|---|
🫱 shareSheet |
List visible targets, select a target, or dismiss the share sheet after the app opens it | 🤖 🍎 | — |
shareSheet drives the system share sheet after the app under test opens it.
It handles the Android 14+ sheet, the older Android chooser and the iOS
share sheet. Opening the sheet is the app’s job (tap its Share button first).
Actions¶
listreturns the visible targets as{label, kind, appId?}and the sheet type. ThesheetKindfield is one ofandroid-intentresolver,android-legacyorios-activity-view-controller. Thekindfield isapp,directoraction(for example Copy). Android includesappIdonly when it could verify the package.selecttaps one target. Pass exactly one oflabelorappId(Android only). Android opens a collapsed sheet and scrolls the list when the target is not visible yet. iOS identifies targets by label only and refusesappId.dismisscloses the sheet.
An ambiguous label is refused with the candidates listed, rather than tapping
the first match. An Android suggested app that the full app list repeats counts
once. Use a unique label or the appId. If no sheet is showing, the
call fails and asks you to open it from the app first.
Testing share flows¶
Each check below starts from an open sheet. Selecting a target closes the sheet, so tap the app’s Share button again before the next check.
- Select the Playground share sink (
AutoMobile Share Sinkon Android,Playgroundon iOS) and read the fields it shows withobserve. - Select the
Copytarget, then read the clipboard. - For prototypes, wait for the
share.openplatform event.