
So, once I know the page has loaded, I can easily handle cookies about to be tested here with a call to a DeleteCookie(Cookie cookie) function which contains a page refresh from within my page confirmation method. I don't know about your test framework, but I use ConfirmOnThisPage() methods anytime I move from one page to another.
:max_bytes(150000):strip_icc()/edge-clear-cookies-5ad76cc7a9d4f9003d76d0ae.png)
The first time this all happens locally, the driver sees the popup, it's dismissed, and a cookie gets created which prevents the popup from triggering for the next test. In the command prompt window, type 'ipconfig/flushdns' and press the Enter key. You can either keep or remove all cookies when MS Edge closes.

Type 'cmd' in the Run dialogue box and press Ctrl + Shift + Enter to open the Command Prompt with administrative rights. This feedback item is now available in Microsoft Edge Version 83.0.470.0 (Official build) canary (64-bit) Status. What I mean is, you must clear cookies and reload screens where necessary.Īn example would be a login screen which navigates to a landing page having a popup arrive ~1-3 seconds after load.Įdge login pages typically don't logout the previous tests user so a Logout is often required at the beginning of these test steps if Browser=Edge. Here is how to do that on a Windows PC: Press Windows + R to launch Run Command Window.

From my experience, the only way to achieve a clean session in Edge is to build it as you go.
