How to handle OTP /how to handle or reuse existing chrome browser session | Selenium Forum
srinivas Posted on 20/10/2020

Hi ,

In My application OTP is valide for 2hr in that time I have to execute BDD scripts.

My BDD selenium scripts lanching new cheome session every time and by that I am receiving the New OTP for each chrome session. - it is hard to handle.

To over come above proble I created Chrome profile with that I am reusing the Chrome and navingating to Home screen (after login without OTP ) , But the scripts are failing in the Home screen unable to navigate further.

I am looking some solution on this/ how to reuse existing chrome session effetively ? if any chrome profile code or any sugessions please let me know.




Ashish Replied on 22/10/2020

OTP comes on mobile

Or it comes on email?

Related Posts