Skip to content

Commit

Permalink
selenium: update set_window_size
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Jul 3, 2024
1 parent 42005d1 commit 6347a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions automon/integrations/seleniumWrapper/webdriver_chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ def set_user_agent(self, user_agent: str):
return self

def set_window_size(self, *args, **kwargs):
"""has to be set after setting webdriver"""
self._window_size = set_window_size(*args, **kwargs)
width, height = self.window_size
self.webdriver.set_window_size(width=width, height=height)
Expand Down

0 comments on commit 6347a02

Please sign in to comment.