Skip to content

Commit

Permalink
selenium: update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Aug 1, 2024
1 parent c8de42b commit 30d3bf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion automon/integrations/seleniumWrapper/webdriver_chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,11 @@ def set_user_agent(self, user_agent: str):

def set_window_size(self, *args, **kwargs):
"""has to be set after setting webdriver"""
logger.debug(f'webdriver :: chrome :: set_window_size :: {args=} :: {kwargs=}')
self._window_size = set_window_size(*args, **kwargs)
width, height = self.window_size
self.webdriver.set_window_size(width=width, height=height)
logger.debug(f'{width}, {height}')
logger.info(f'webdriver :: chrome :: set_window_size :: {width=} {height=}')
return self

async def start(self):
Expand Down

0 comments on commit 30d3bf6

Please sign in to comment.