Google News
logo
Selenium - Quiz(MCQ)
To delete a cookie we need to call the deleteCookie method, passing in two parameters.
A)
The first parameter is where it was created, and the second parameter is the name of cookie.
B)
The first parameter is the name of the cookie, and the second parameter is where it was created.
C)
Both (A) and (B)
D)
None of the above

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


Explanation :

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 B is a correct.

Advertisement