From d7bec9d388147bfc3e577eef5d3b79b7f9f48f13 Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Tue, 2 Jul 2024 16:53:38 -0700 Subject: [PATCH] selenium: cookie in json file --- automon/integrations/seleniumWrapper/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automon/integrations/seleniumWrapper/browser.py b/automon/integrations/seleniumWrapper/browser.py index 27ff1267..08147e7b 100644 --- a/automon/integrations/seleniumWrapper/browser.py +++ b/automon/integrations/seleniumWrapper/browser.py @@ -58,7 +58,7 @@ def by(self) -> By: def config(self): return self._config - async def cookie_file_to_dict(self, file: str = 'cookies.txt') -> list: + async def cookie_file_to_dict(self, file: str = 'cookies.json') -> list: logger.debug(dict( cookie_file_to_dict=file )) @@ -290,7 +290,7 @@ async def delete_all_cookies(self) -> None: async def _url_filename(self, url: str): parsed = await self.urlparse(url) hostname = parsed.hostname - cookie_file = f'cookies-{hostname}.txt' + cookie_file = f'cookies-{hostname}.json' logger.debug(dict( _url_filename=cookie_file ))