1717// under the License.
1818// </copyright>
1919
20+ using System ;
2021using System . Collections . ObjectModel ;
2122
2223namespace OpenQA . Selenium
@@ -35,6 +36,7 @@ public interface ICookieJar
3536 /// Adds a cookie to the current page.
3637 /// </summary>
3738 /// <param name="cookie">The <see cref="Cookie"/> object to be added.</param>
39+ /// <exception cref="ArgumentNullException">If <paramref name="cookie"/> is <see langword="null"/>.</exception>
3840 void AddCookie ( Cookie cookie ) ;
3941
4042 /// <summary>
@@ -43,18 +45,22 @@ public interface ICookieJar
4345 /// <param name="name">The name of the cookie to retrieve.</param>
4446 /// <returns>The <see cref="Cookie"/> containing the name. Returns <see langword="null"/>
4547 /// if no cookie with the specified name is found.</returns>
48+ /// <exception cref="ArgumentNullException">If <paramref name="name"/> is <see langword="null"/>.</exception>
49+ /// <exception cref="NoSuchCookieException">If <paramref name="name"/> is not found.</exception>
4650 Cookie GetCookieNamed ( string name ) ;
4751
4852 /// <summary>
4953 /// Deletes the specified cookie from the page.
5054 /// </summary>
5155 /// <param name="cookie">The <see cref="Cookie"/> to be deleted.</param>
56+ /// <exception cref="ArgumentNullException">If <paramref name="cookie"/> is <see langword="null"/>.</exception>
5257 void DeleteCookie ( Cookie cookie ) ;
5358
5459 /// <summary>
5560 /// Deletes the cookie with the specified name from the page.
5661 /// </summary>
5762 /// <param name="name">The name of the cookie to be deleted.</param>
63+ /// <exception cref="ArgumentNullException">If <paramref name="name"/> is <see langword="null"/>.</exception>
5864 void DeleteCookieNamed ( string name ) ;
5965
6066 /// <summary>
0 commit comments