Рет қаралды 2,055
In this video, we'll learn how to easily accept new user emails and open the link in a new context using Playwright Automation and MailSlurp. Playwright Automation's ability to have multiple contexts running at the same time allows you to easily switch between users without having to log out and go to an email client like Gmail.
MailSlurp is an API for SMS messages and emails that makes it easy to work with emails in your test cases without having to go into an email client. Connect to your MailSlurp account, create a new inbox with an inbox ID, and use the API to wait for the latest email with that ID. Pull the subject and any links from the email, and use them to open a new browser context with a new page. Navigate to the URL using page1.goto(url) and you're all set!
If you want more content, please Subscribe!
If you prefer written content, check out our website!
Article: www.workwithloop.com/blog/usi...
Blog: www.workwithloop.com/blog/
If you prefer to let the experts do it, just reach out!