Wait for a verification or sign-in link
wait_for_linkWaits up to 30 seconds for a verify, magic sign-in, invite or password-reset link to arrive at the address, and returns the link with the sending service. The link has not been opened.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | true for a link that opens a mobile app (myapp://…), false for a web link. Leave out for either; when an email has both, the web link comes first. | |
| kind | No | Which kind of link. Default: any of verify, magic_signin, invite or reset. unsubscribe is the email's own unsubscribe or email-preferences link; list_unsubscribe is the List-Unsubscribe header's, which Gmail's Unsubscribe button uses (to do what it does, POST List-Unsubscribe=One-Click to it with your own tools). Proxy Mail QA never opens either. | |
| test | No | With run_id: the test or step this call belongs to, shown beside what it saw in the report. | |
| since | No | Only match email received at or after this time. Default: the last 15 minutes. | |
| run_id | No | A run from start_run: what this call sees is added to its report. | |
| unused | No | true: only a code or link nobody has used yet (not returned by an earlier wait, nor opened, copied or filled in the app or Proxy Mail QA for Chrome). For a second code without changing since. | |
| address | Yes | A test address in this project. A variant works too (capitals, or a +tag such as name+o'brien@…): it acts on the plain address, and a wait on a +tag variant only finds mail sent to it. | |
| service | No | Only match email from this sender, by service name or domain (for example the name of the app under test). | |
| timeout_seconds | No | How long to wait. 0 checks once. |