Skip to content

Commit

Permalink
selenium: cookie in json file
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Jul 2, 2024
1 parent 11b9b0b commit d7bec9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automon/integrations/seleniumWrapper/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
))
Expand Down Expand Up @@ -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
))
Expand Down

0 comments on commit d7bec9d

Please sign in to comment.