To delete a cookie we need to call the deleteCookie method, passing in two parameters.

Options
- The first parameter is the name of the cookie, and the second parameter is where it was created.
- The first parameter is where it was created, and the second parameter is the name of cookie.
- None of these


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

Discussion Board
Selenium

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

Solution: DeleteCookie: deletecookie method is used to delete specific cookies. DeleteCookie method is defined by Delete_cookie(para1 , para2) , the first parameter is the name of the cookie and the second parameter is the path of the cookie.
Therefore option A is a correct.


Rohit Srivastava 07-28-2014 05:33 AM

Write your comments


Enter the code shown above:

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


Advertisement