Skip to content

Commit

Permalink
Use new headless mode in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Jan 26, 2025
1 parent 7fed2f4 commit bdbbba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amuser/selenium_ability.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_driver(self):
if self.driver_name == "Chrome":
options = webdriver.ChromeOptions()
if headless:
options.add_argument("--headless=old")
options.add_argument("--headless")
driver = webdriver.Chrome(options=options)
driver.set_window_size(1700, 900)
elif self.driver_name == "Firefox":
Expand Down
2 changes: 1 addition & 1 deletion simplebrowsertest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def get_chrome_driver():
options = webdriver.ChromeOptions()
options.add_argument("--headless=old")
options.add_argument("--headless")
driver = webdriver.Chrome(options=options)
return driver

Expand Down

0 comments on commit bdbbba9

Please sign in to comment.