Skip to content

Commit

Permalink
Merge pull request #82 from hhslepicka/fix-chrome-headless-110
Browse files Browse the repository at this point in the history
FIX: Add new headless parameter for Chrome > 108.
  • Loading branch information
hhslepicka authored Mar 10, 2023
2 parents 629b5e1 + 0c797a5 commit 3e860a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions botcity/web/browsers/chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def default_options(headless=False, download_folder_path=None, user_data_dir=Non

if headless:
chrome_options.add_argument("--headless")
chrome_options.add_argument("--headless=new")
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--hide-scrollbars")
chrome_options.add_argument("--mute-audio")
Expand Down
1 change: 1 addition & 0 deletions botcity/web/browsers/edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def default_options(headless=False, download_folder_path=None, user_data_dir=Non

if headless:
edge_options.add_argument("--headless")
edge_options.add_argument("--headless=new")
edge_options.add_argument("--disable-gpu")
edge_options.add_argument("--hide-scrollbars")
edge_options.add_argument("--mute-audio")
Expand Down

0 comments on commit 3e860a6

Please sign in to comment.