Delete a cookie we need to call deleteCookie method & pass parameters - Selenium

Q.  To delete a cookie we need to call the deleteCookie method and we are passing in two parameters, what are those parameters?
- Published on 19 Oct 15

a. The first parameter is the name of the cookie, and the second parameter is where it was created.
b. The first parameter is where it was created, and the second parameter is the name of cookie.
c. Both of these
d. None of these

ANSWER: The first parameter is the name of the cookie, and the second parameter is where it was created.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)