---
title: "Discussion on \"Playwright Login OTP: One Real SMS per Run, Then Reuse the Session\" | Hashnode"
description: "Discussion on \"Playwright Login OTP: One Real SMS per Run, Then Reuse the Session\". A Playwright setup project rents a number, reads the SMS code over an API, logs in once, and saves storageState so other tests skip the OTP."
url: "https://hashnode.com/posts/playwright-login-otp/6b07cade3c83c190890df0c4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Playwright Login OTP: One Real SMS per Run, Then Reuse the Session](https://sms-otp-testing.hashnode.dev/playwright-login-otp?utm_source=hashnode&utm_medium=feed)

A Playwright setup project rents a number, reads the SMS code over an API, logs in once, and saves storageState so other tests skip the OTP.

5d ago · 11 min read · sms-otp-testing.hashnode.dev  
Read the article

-   [#otp](https://hashnode.com/tag/otp)
-   [#playwright](https://hashnode.com/tag/playwright)
-   [#testing](https://hashnode.com/tag/testing)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#test-automation](https://hashnode.com/tag/test-automation)

## Written by

[Willette](https://hashnode.com/@willette-samer)

@willette-samer · India

  
[View profile](https://hashnode.com/@willette-samer)

I work with HeroSMS and write about SMS/OTP testing, phone verification APIs and Python/Playwright automation.

I work with HeroSMS, a virtual phone number service, and write practical guides on testing SMS/OTP flows: Python scripts, Playwright end-to-end tests, webhooks and CI pipelines. I focus on code you can actually run and on the parts of phone verification that tend to break.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
