A
A
AHDPEE4KA2018-10-20 10:47:43
Python
AHDPEE4KA, 2018-10-20 10:47:43

How can I get site cookies and then use them in selenium?

It might be possible to just use the profile in chrome, but how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-10-20
@dimonchik2013

driver.manage().getCookies();   // Return The List of all Cookies
driver.manage().getCookieNamed(arg0);  //Return specific cookie according to name
driver.manage().addCookie(arg0);   //Create and add the cookie
driver.manage().deleteCookie(arg0);  // Delete specific cookie
driver.manage().deleteCookieNamed(arg0); // Delete specific cookie according Name
driver.manage().deleteAllCookies();  // Delete all cookies

what is the question?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question