Skip to content

Commit

Permalink
FIX: Add new headless parameter for Chrome > 108.
Browse files Browse the repository at this point in the history
  • Loading branch information
hhslepicka committed Mar 10, 2023
1 parent 629b5e1 commit 0c797a5
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 0c797a5

Please sign in to comment.