From bdea8e0d78ec46e7eecdab8b934bd41fc4af7450 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 17 Nov 2018 11:47:45 +0100 Subject: browser: clearBrowserCookies is supported unconditionally canClearBrowserCookies apparently has been removed from protocol 1.3. --- crocoite/browser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crocoite') diff --git a/crocoite/browser.py b/crocoite/browser.py index 1b6debf..91f0a0a 100644 --- a/crocoite/browser.py +++ b/crocoite/browser.py @@ -182,11 +182,8 @@ class SiteLoader: tab.Page.enable (), tab.Inspector.enable (), tab.Network.clearBrowserCache (), + tab.Network.clearBrowserCookies (), ]) - resp = await tab.Network.canClearBrowserCookies () - if resp['result']: - await tab.Network.clearBrowserCookies () - return self async def __aexit__ (self, exc_type, exc_value, traceback): -- cgit v1.2.3