Skip to content

Commit f273aa4

Browse files
committed
Fixing use of deprecated API in HtmlUnit
1 parent 130b6c4 commit f273aa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ public void deleteCookieNamed(String name) {
13951395
CookieManager cookieManager = getWebClient().getCookieManager();
13961396

13971397
URL url = getRawUrl();
1398-
Set<com.gargoylesoftware.htmlunit.util.Cookie> rawCookies = cookieManager.getCookies(url);
1398+
Set<com.gargoylesoftware.htmlunit.util.Cookie> rawCookies = getWebClient().getCookies(url);
13991399
for (com.gargoylesoftware.htmlunit.util.Cookie cookie : rawCookies) {
14001400
if (name.equals(cookie.getName())) {
14011401
cookieManager.removeCookie(cookie);
@@ -1423,7 +1423,7 @@ public Set<Cookie> getCookies() {
14231423
}
14241424

14251425
return ImmutableSet.copyOf(Collections2.transform(
1426-
getWebClient().getCookieManager().getCookies(url),
1426+
getWebClient().getCookies(url),
14271427
htmlUnitCookieToSeleniumCookieTransformer));
14281428
}
14291429

0 commit comments

Comments
 (0)