How to delete browser cookies with selenium web driver?



How to delete browser cookies with selenium web driver?..

Answer / Manish Jaiswal

To delete cookies using Selenium WebDriver, you can use the deleteAllCookies() method of the Cookies interface. This method deletes all the cookies for a given domain.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

How do you handle Alerts and Pop Ups?

3 Answers   HCL,


How to run test case traced by employing ide in browsers?

1 Answers  


What is the difference between single and double slash in xpath?

1 Answers  


How you can handle colors in web driver?

1 Answers  


How do you find element using Java Script?

3 Answers   HCL,


What are the different components of the selenium?

1 Answers  


Using web driver how you can store a value which is text box?

1 Answers  


Tell me how can we maximize browser window in selenium?

1 Answers  


Firefox driver is class or an interface and from where is it inherited?

1 Answers  


What You Know About Selenium Grid?

1 Answers  


Other than the default port 444 how you can run selenium server?

1 Answers  


Tell us how will you use selenium to upload a file?

1 Answers  


Categories