File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 20
20
from selenium .webdriver .chrome .service import Service
21
21
from webdriver_manager .core .os_manager import ChromeType , OperationSystemManager
22
22
23
- __version__ = "0.0.13 "
23
+ __version__ = "0.0.14 "
24
24
25
25
PATH_TO_HTML2PDF_JS = os .path .join (
26
26
os .path .dirname (os .path .join (__file__ )), "html2pdf_js" , "html2pdf.min.js"
@@ -319,8 +319,11 @@ def create_webdriver(
319
319
webdriver_options = Options ()
320
320
webdriver_options .add_argument ("start-maximized" )
321
321
webdriver_options .add_argument ("disable-infobars" )
322
- webdriver_options .add_argument ("--headless" )
323
322
webdriver_options .add_argument ("--disable-extensions" )
323
+ webdriver_options .add_argument ("--headless" )
324
+ # FIXME: This is not nice but otherwise it does not work in Ubuntu 24-based Docker image.
325
+ # https://github.com/SeleniumHQ/selenium/issues/15327#issuecomment-2689287561
326
+ webdriver_options .add_argument ("--no-sandbox" )
324
327
325
328
# The Chrome option --disable-dev-shm-usage disables the use of /dev/shm
326
329
# (shared memory) for temporary storage in Chrome.
You can’t perform that action at this time.
0 commit comments