Back to all steps

Wait for e-mail

Step fields
1 address (rmb:slot_1) (text)
2 text or /regex/ (empty - any) (text)
3 seconds (number)
In a scenario, fields are joined with |.
Waits for an e-mail to the test address and checks it contains the text (searched in subject and body). Format: address|text|seconds.
Examples: rmb:slot_1|Confirm your registration|120 · rmb:slot_1|/order #\d+/|60 (regex in slashes) · rmb:slot_1||60 - any e-mail. The step fails if no matching e-mail arrives in time.
Usage example

Wait for an e-mail to the test address. Format: address|text|seconds.

  • rmb:slot_1|Welcome|120 - substring in subject or body, case-insensitive
  • rmb:slot_1|/Order #\s*\d+/|60 - regular expression
  • rmb:slot_1||60 - any e-mail

The subject of the matched e-mail is shown in the step report.