WebdriverIO’s migration guide documents the WebdriverIO 10 release line, and its mobile API includes a deep-link command for device testing (v10 migration guide, deepLink API). Symptom: an email test passes, but nobody knows whether the message arrived or the app handled its link. Fastest fix: treat inbox readability, operating-system routing, app handling, and account verification as separate checks. A passing browser or Appium flow does not prove real email delivery or guarantee that every device will open the app.
This guide is for mobile developers validating registration, sign-in, or verification links in their own app; QA engineers joining controlled email access to device automation; and indie developers checking both installed-app and web-fallback behavior before release.
Set the boundary before the first run
Keep the test within an app and environment your team owns or is authorized to test. Use a staging environment where possible, a unique test account, and non-production credentials. Avoid real users’ personal information. If test records may contain personal data, agree how they will be stored and removed before the run; our privacy notice offers context for thinking about data handling, but does not replace your organization’s rules.
Write down what counts as passing before starting automation. These are separate outcomes, not interchangeable ways to say “email verification works”:
- Email is readable: the controlled inbox contains the message for this test, and its recipient and contents match the request.
- Link is usable: the link points to the intended test environment and its token can be processed as expected.
- The operating system hands off the link: the device opens the expected app, web page, or app-selection interface. Record what actually happened rather than treating every handoff as equivalent.
- The app handles the link: the app reaches the intended screen and receives the expected route or relevant parameters.
- The account is verified: a separate account-state check confirms that the backend or app now records the intended result.
Which evidence proves the full flow? Only the evidence that covers each part of the flow. An inbox screenshot cannot prove app routing; a screen assertion cannot prove that the email was delivered through the normal mail path; and a successful account-state check alone cannot show which link-handling path occurred.
Before implementing device steps, check the WebdriverIO 10 migration information and the current mobile deepLink API reference. Use the matching Appium driver documentation for the device under test. A desktop browser opening a URL can test web behavior, but it is not equivalent to validating native app handoff on iOS or Android.
Trigger a test message with traceable ownership
Start from the test environment’s normal registration or sign-in action. Do not insert a verification URL directly into the app and then call the email flow tested: that skips the message-generation step.
Use a controlled test account and associate the action with a test-run identifier that your team can search in application logs. The identifier might be a test-run label or a unique account name; avoid putting a person’s name or other unnecessary personal data in either. Record the expected environment, recipient, and post-click destination before triggering the message.
For reliable diagnosis, retain the relevant event timestamps or request identifiers from your own application logs. Those records help distinguish “the app never requested an email” from “the mail system did not deliver a readable message.” They do not, by themselves, prove that the message reached an inbox. Keep verification tokens out of shared logs and reports where possible; capture only the parts of a URL needed to identify its route, not a live secret that could verify the account again.
How should a registration email link be tested with WebdriverIO 10? Trigger the registration in the controlled environment, wait for the matching message in the controlled inbox, extract the link from that message, and then open it on the target device through the documented WebdriverIO mobile flow. Finally, check both the app’s visible result and the account’s persisted verification state.
A useful test record separates what the application generated from what the test observed. For example, note the intended host and route without retaining the complete token-bearing URL. If the message points to production while the test account belongs to staging, stop and investigate the environment configuration. Do not click through and assume the destination is safe simply because the email arrived.
Read the matching message instead of sleeping
Choose a controlled receiving method that the test can access and that fits your team’s privacy and retention requirements. A test email address can keep development messages away from a personal or company inbox, but the address is only useful if the test can reliably identify the message for the current account and run. Our guide to choosing an email address for registration can help assess the receiving method before it becomes part of an automated test.
Poll for a message that matches the test recipient and the expected subject, sender, or other stable feature. Prefer a condition-based wait with a clear timeout and a useful failure message over a fixed sleep. A delay only shows that the test paused; it does not show that an email arrived. If the message is absent, classify the result as an inbox or mail-delivery investigation first, not as an app deep-link failure.
After finding the message, inspect the recipient and enough content to establish that this is the right message. Then parse the verification link and validate its host and route against the environment expected for the test. Avoid printing the full link in test output: verification links commonly carry sensitive tokens, and a test report can be retained or shared more widely than the inbox itself.
This is a practical place to separate two results in your automation report:
- Message readable: the test located and inspected the intended email.
- Link content acceptable: the extracted destination matches the expected test environment and route.
Neither result proves that the operating system will send the link to the app. That needs a device-level check.
Open the URL on the target device and record the handoff
Use WebdriverIO’s documented mobile deep-link flow for the version and driver in your test setup. Follow the API reference for its supported arguments rather than assuming a browser-navigation command performs the same operation. When the test relies on Appium-specific behavior, confirm the relevant driver’s method and requirements as well. For iOS automation, consult the Appium XCUITest driver’s execute-method reference.
A test should record what the device did after opening the verification URL. Useful observations include:
- The browser displayed the destination page.
- The operating system presented an app-selection or confirmation interface.
- The app opened and displayed the expected verification screen.
- The app opened, but showed an error, a different screen, or no visible change.
- The URL remained in the browser instead of handing off to the app.
These results are not equivalent. For example, browser display proves the URL reached a web destination; it does not prove native routing. An app launch proves that an app opened; it does not prove the app received the expected route or accepted the token.
For Android, check your app’s link configuration and the platform’s App Links guidance. Android describes the relationship between a website and an app for App Links in its official overview, and provides a troubleshooting guide for issues such as verification and link handling. For Apple platforms, use Apple’s guidance on allowing apps and websites to link to app content. These platform-specific references matter: successful routing on one device does not establish that every device, installation state, or configuration will behave the same way.
Why might a verification link fail to open the app on iOS or Android? First identify the observed handoff. If the browser stays open, inspect the link’s domain, path, and platform association configuration. If the system offers a choice, record that behavior and check how the test device is configured. If the app opens but shows the wrong screen, inspect the app’s route parsing and the parameters it receives. Use the relevant Apple or Android guidance for that platform instead of treating a browser result as proof of a universal app-routing rule.
Compare outcomes by evidence strength
Use this comparison to report what a result actually supports. “Strong” means direct evidence for that individual check; it does not mean the whole email-to-account flow passed.
- Inbox inspection — strong for message readability; weak for app handoff. It shows that the controlled receiving method exposed the matching message. It says nothing about whether a device associates the link with the app.
- Browser navigation — strong for web fallback; weak for native app routing. It shows that a browser can open the destination. It does not show that the operating system handed the link to the app.
- Device-level deep-link attempt — strong for the observed handoff on that test device; partial for app behavior. It records whether the app, browser, or a system interface handled the attempt. Add an app-screen assertion to check the route the app reached.
- App screen assertion — strong for visible app behavior; partial for backend persistence. The screen may display a success state before the account record has been updated or reloaded.
- Account-state check — strong for the persisted verification result; weak for the route taken. A backend or authorized test API can confirm the final account state, but it does not establish whether the mail arrived or which component handled the link.
This comparison prevents a common reporting shortcut: marking the entire test “passed” because one downstream assertion succeeded. If the account is verified but the inbox was not inspected, the account check is useful evidence, but it is not proof of real mail receipt.
Diagnose missing links, web fallback, and stale accounts separately
A useful failure report names the earliest stage that did not meet its condition.
- No message in the controlled inbox: confirm that the registration action generated a mail request, check the recipient and environment, and inspect application or mail-service logs available to your team. Keep this as a receiving or delivery issue until a matching message is found.
- Message found, destination is wrong: compare the email’s link host and route with the intended test environment. Review configuration for staging and production separately. Do not pass the test just because the link is clickable.
- Browser opens instead of the app: record the device result, then review the domain and path association for that platform. On Android, compare your result with the platform’s official App Links troubleshooting guidance. On Apple platforms, check the expected behavior against Apple’s Universal Links guidance.
- App opens but the expected screen does not: inspect the incoming URL and route-handling code. Check whether the app discarded an unknown path, received an unexpected parameter, or presented an error state.
- App shows success but the account is not verified: query the authorized test account state again, review the verification response and persistence path, and distinguish a UI update from a saved backend change.
Can a passing WebdriverIO test prove that the verification email was really delivered? Not unless the test includes a receiving method that actually reads the matching message. A browser or device test can exercise a link supplied by the test without proving that an email reached an inbox. Even a readable test message only proves receipt through that controlled path; it is not a guarantee of production delivery to every user or provider.
When the app is not installed, or the link does not match the app’s association, record the web or system behavior as observed. Apple and Android document their own routing and fallback behavior; do not infer a universal fallback from one test device. This distinction helps teams avoid mislabeling an expected web destination as an app defect—or a broken app association as a successful verification.
Close the run with evidence for every layer
Use this checklist when assembling the test report:
- [ ] The run used an authorized app and the intended non-production environment.
- [ ] The trigger is tied to a unique test account and a searchable run identifier.
- [ ] The controlled inbox exposed the matching message, and the recipient and content were checked.
- [ ] The link host and route match the expected environment without exposing its complete token in shared output.
- [ ] The target device’s observed handoff is recorded as app, browser, or system interface.
- [ ] The app reached the expected screen and handled the relevant route or parameters.
- [ ] The account’s persisted verification state was checked independently of the screen.
- [ ] The report states separately whether the automation flow passed and whether real message receipt was observed through the controlled test inbox.
This checklist deliberately produces more than a single green result. A run can pass link parsing while failing inbox receipt; it can prove a message was readable while failing app handoff; or it can reach the app while failing to update the account. Keep those outcomes distinct so a later fix can be evaluated against the correct evidence.
For a temporary registration or verification test, a controlled receiving address can be simpler than involving a personal or shared work inbox. It is not the right choice for accounts that need long-term recovery, ongoing replies, or dependable future correspondence. Before adopting any service for test runs, verify its current receiving method, retention, and access behavior on the service’s own page. If Temp2U’s current offering fits that controlled test, review Temp2U as one option; keep app handoff and persisted account state as separate checks regardless of which inbox you use.
Further reading
- Troubleshoot verification-email delays by checking the send, delivery, and inbox stages. · On Temp2U
- Plan account-state checks around recovery needs and the lifespan of the signup email. · On Temp2U
- Compare disposable email and forwarding aliases when choosing a test inbox with the right lifespan. · On Temp2U
Disposable email, receive verification codes, keep your real address private, and let it expire when you're done.
Choose the right email boundary based on how long you'll actually use it: a one-time inbox or a long-term forwarding alias.