From 7fa2bdf554dd0438be74617037ead2703fa900d1 Mon Sep 17 00:00:00 2001 From: Andreas Zeller Date: Sat, 14 Oct 2023 18:11:55 +0200 Subject: [PATCH] Update from debuggingbook --- notebooks/shared/bookutils/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/notebooks/shared/bookutils/__init__.py b/notebooks/shared/bookutils/__init__.py index a94f98a74..737ae93b5 100644 --- a/notebooks/shared/bookutils/__init__.py +++ b/notebooks/shared/bookutils/__init__.py @@ -205,11 +205,10 @@ def HTML(data: Optional[str] = None, # Get a webdriver global firefox if firefox is None: - options = Options() + options = webdriver.FirefoxOptions() options.headless = headless - profile = FirefoxProfile() - profile.set_preference("layout.css.devPixelsPerPx", repr(zoom)) - firefox = webdriver.Firefox(firefox_profile=profile, options=options) + options.set_preference("layout.css.devPixelsPerPx", repr(zoom)) + firefox = webdriver.Firefox(options=options) # Create a URL argument if data is not None: