Automate Tokens base login in Playwright. Java

121 Views Asked by At

Scenario : To login to the application, need to enter the username and token sent on register email id.

How can we automate above scenario in playwright using java language.

Thank you in advance.

1

There are 1 best solutions below

0
On

You can automate your email login and collect the token from your email, then use the token for your main login. I think this process will help you and I don't think there are any other processes to do this scenario. You can use a different page for email login and token collection in the same browser context or can you use an entirely different browser context. I must tell you this approach is not a good way. Hope this will help you.