EdgeWebDriver icon indicating copy to clipboard operation
EdgeWebDriver copied to clipboard

IE Edge Mode: Delete history and all data after data after a test is completed.

Open manu141 opened this issue 3 years ago • 1 comments

Feature to have: Delete history and all data after data after a test is completed using the setting options from IE to work for IE Edge mode.

Currently, we have enabled all of the IE settings and Edge settings to delete data/history after the browser is closed. but we are seeing it not being deleted, as our login routes through 'https://login.microsoftonline.com/' and every time we see that username is not deleted even after proper logout. So currently I know most of us(i think), we have to use 'destructivelyEnsureCleanSession();' to clear all of the data/history and it helps for now, but in future its good to have a way IE Edge can delete all the history or data before a new browser is launched every time we could save about 15-20 seconds on each test.(like how IE is working now)

This is how we are running currently with Setup @BeforeMethod in Java : InternetExplorerOptions ieOptions = new InternetExplorerOptions(); Map<String, Object> ops = (Map<String, Object>) ieOptions.getCapability("se:ieOptions"); ops.put("ie.edgechromium", true); ops.put("ie.edgepath", "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"); ieOptions.destructivelyEnsureCleanSession();

manu141 avatar Jun 14 '22 14:06 manu141

Thank you for reporting this. Since this appears to be a regression caused by moving from IE11 to Edge IE Mode, I have added to this our internal backlog to investigate.

bwalderman avatar Jun 24 '22 16:06 bwalderman