Skip to content

Commit af59391

Browse files
committed
add --no-sandbox again
1 parent 0b15802 commit af59391

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

html2print/html2print.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ def create_webdriver(
369369
# Use --headless=new, as it seems to be more stable on Windows (available since Chrome 109).
370370
# see https://www.selenium.dev/blog/2023/headless-is-going-away/
371371
webdriver_options.add_argument("--headless=new")
372+
# FIXME: This is not nice but otherwise it does not work in Ubuntu 24-based Docker image.
373+
# https://github.com/SeleniumHQ/selenium/issues/15327#issuecomment-2689287561
374+
webdriver_options.add_argument("--no-sandbox")
372375

373376
# The Chrome option --disable-dev-shm-usage disables the use of /dev/shm
374377
# (shared memory) for temporary storage in Chrome.

0 commit comments

Comments
 (0)