![]() 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. 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. 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. From my experience, the only way to achieve a clean session in Edge is to build it as you go. To clear cache, cookies, and browsing history in Microsoft Edge, click on the three horizontal dots icon at the top right corner and go to Settings > Privacy, search, and services >.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |