I work on monitor for “reset password” flow of “Scripted Browser” type. Plan was to run “register new user”, start new login process and finally make password reset steps.
Between steps 1 and 2 I need to wipe all the cookies, otherwise user is considered authorized so I don’t get login form shown. Added
$browser.manage().deleteAllCookies(); but it does not help.
To my understanding, since it wipes cookies only to current domain and AUTH domain makes redirect immediately - since user is considered authorized - cookies are wiped to URL we are redirected to instead of AUTH domain.
Is there any way to drop all the cookies for all the domains aka getting “fresh browser instance”? Or is there way to pause/disable redirection?