Styrow.dev
Question 49 of 82

How to delete cookies in Selenium?

Question

How to delete cookies in Selenium?

Answer

To delete cookies we can use deleteAllCookies() method

driver.manage().deleteAllCookies();


šŸ“² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.