Skip to content

Commit

Permalink
Use old headless mode in Chrome browser
Browse files Browse the repository at this point in the history
See issue #14154 on the SeleniumHQ/selenium repo.
  • Loading branch information
replaceafill committed Sep 28, 2024
1 parent 71cd7b0 commit 918ad93
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=new")
options.add_argument("--headless=old")
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")
options.add_argument("--headless=old")
driver = webdriver.Chrome(options=options)
return driver

Expand Down

0 comments on commit 918ad93

Please sign in to comment.